/*
 * Bat-BMS APK - Premium Design System (style.css)
 * Accent Colors: Blue & Green
 * Theme: Light & Dark Modes supported via variables
 */

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

:root {
  /* Fonts */
  --font-primary: 'Outfit', sans-serif;
  --font-secondary: 'Plus Jakarta Sans', sans-serif;

  /* Color Palette - Dark Mode (Default) */
  --bg-primary: #0b0f19;
  --bg-secondary: #131b2e;
  --bg-tertiary: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --color-blue: #3b82f6;
  --color-green: #10b981;
  --color-green-hover: #059669;
  --color-blue-hover: #2563eb;
  
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
  --gradient-hover: linear-gradient(135deg, #2563eb 0%, #059669 100%);
  --gradient-dark: linear-gradient(180deg, #131b2e 0%, #0b0f19 100%);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.15);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-inset: inset 0 2px 4px rgba(255, 255, 255, 0.05);
  
  --card-bg: rgba(19, 27, 46, 0.7);
  --card-blur: blur(16px);
  
  /* Transition durations */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s ease;

  /* Header sizing */
  --header-height: 70px;
}

/* Light Mode Variables Override */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --color-blue: #2563eb;
  --color-green: #059669;
  
  --border-color: rgba(15, 23, 42, 0.08);
  --border-color-hover: rgba(15, 23, 42, 0.15);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
  --shadow-inset: inset 0 1px 1px rgba(255, 255, 255, 0.6);
  
  --card-bg: rgba(255, 255, 255, 0.85);
  --gradient-dark: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-family: var(--font-secondary);
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-green);
}

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

h1 { font-size: 2.5rem; }
h2 { font-size: 1.85rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.4rem; }

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Utility Layouts */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 3rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.section-title h2 {
  display: inline-block;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Reading Progress Bar */
.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 1001;
}

.progress-bar {
  height: 4px;
  background: var(--gradient-primary);
  width: 0%;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  background: var(--card-bg);
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  height: var(--header-height);
  transition: background-color var(--transition-normal);
}

header.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-primary);
  font-family: var(--font-primary);
}

.logo svg {
  width: 32px;
  height: 32px;
  fill: url(#logoGradient);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
}

/* Search Bar in Header */
.search-container {
  position: relative;
  max-width: 250px;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.2rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-primary);
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--border-color);
}

.theme-toggle-btn .sun-icon {
  display: none;
}

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

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

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  padding: 3rem 0 3rem;
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(180deg, rgba(11, 15, 25, 0) 0%, var(--bg-primary) 100%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.badge-wrapper {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-gradient {
  background: var(--gradient-primary);
  color: #fff;
}

.badge-outline {
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.hero-title {
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
}

.hero-metadata {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  backdrop-filter: var(--card-blur);
}

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

.meta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.meta-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hero-cta {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* Button UI */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
  background: var(--gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.35);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--border-color);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

/* App Screenshot Slider */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
  width: 280px;
  height: 570px;
  background: #1e293b;
  border: 12px solid #0f172a;
  border-radius: 38px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #0b0f19;
  position: relative;
}

.slider-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background var(--transition-fast), width var(--transition-fast);
}

.dot.active {
  background: #fff;
  width: 20px;
  border-radius: 4px;
}

/* Screenshot Slider SVG Mock/Image generation styling */
.screenshot-placeholder {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top left, #1e293b 0%, #0b0f19 100%);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  box-sizing: border-box;
}

.mock-ui-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.mock-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}

.mock-status {
  font-size: 0.75rem;
  color: var(--color-green);
  display: flex;
  align-items: center;
  gap: 4px;
}

.mock-battery-circle {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0.5rem auto 1.5rem;
  border-radius: 50%;
  background: conic-gradient(var(--color-green) 78%, rgba(255, 255, 255, 0.1) 78%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.mock-battery-circle::after {
  content: '';
  position: absolute;
  width: 140px;
  height: 140px;
  background: #0f172a;
  border-radius: 50%;
  z-index: 1;
}

.mock-battery-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.mock-battery-percentage {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
}

.mock-battery-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.mock-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.75rem;
  text-align: center;
}

.mock-card-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.mock-card-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}

/* Quick App Information Table */
.app-table-wrapper {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 3.5rem;
}

.app-table {
  width: 100%;
  border-collapse: collapse;
}

.app-table td {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.app-table tr:last-child td {
  border-bottom: none;
}

.app-table td.label-col {
  font-weight: 600;
  color: var(--text-primary);
  width: 35%;
  background: rgba(255, 255, 255, 0.01);
}

.app-table td.value-col {
  color: var(--text-secondary);
}

.app-table td.value-col a {
  font-weight: 600;
}

/* Features Section Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.2rem;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  backdrop-filter: var(--card-blur);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrapper {
  width: 55px;
  height: 55px;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--gradient-primary);
  color: #fff;
}

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

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Ad Placements Styling */
.ad-slot {
  background: rgba(255, 255, 255, 0.02);
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

/* App Description Layout */
.app-desc-grid {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 3.5rem;
}

.content-article {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.content-article p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.content-article ul, .content-article ol {
  padding-left: 2rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Table of Contents */
.toc-card {
  position: sticky;
  top: 100px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.toc-card h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toc-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.toc-link:hover, .toc-link.active {
  color: var(--color-blue);
  font-weight: 500;
}

/* Pros and Cons */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.pc-box {
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid var(--border-color);
}

.pc-box-pros {
  background: rgba(16, 185, 129, 0.03);
  border-color: rgba(16, 185, 129, 0.15);
}

.pc-box-cons {
  background: rgba(239, 68, 68, 0.03);
  border-color: rgba(239, 68, 68, 0.15);
}

.pc-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pc-title-pros { color: var(--color-green); }
.pc-title-cons { color: #ef4444; }

.pc-list {
  list-style: none !important;
  padding-left: 0 !important;
}

.pc-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.pc-list li::before {
  content: '';
  position: absolute;
  left: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.pc-box-pros .pc-list li::before { background: var(--color-green); }
.pc-box-cons .pc-list li::before { background: #ef4444; }

/* Screenshots Grid with Lightbox */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 9/16;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 25, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  color: #fff;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Lightbox UI */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 25, 0.95);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.lightbox-content {
  max-width: 90%;
  max-height: 85%;
  border-radius: 16px;
  overflow: hidden;
}

.lightbox-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  outline: none;
}

.faq-question:hover {
  color: var(--color-blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.faq-answer-content {
  padding: 0 1.5rem 1.5rem;
}

.faq-item.active {
  border-color: var(--color-blue);
}

.faq-question-icon {
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-question-icon {
  transform: rotate(180deg);
  color: var(--color-blue);
}

/* Related Apps Carousel/Slider */
.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.related-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.related-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-blue);
}

.related-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-green);
}

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

.related-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

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

/* Reviews and Comments Section */
.reviews-summary {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
}

.rating-score {
  text-align: center;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.rating-big-num {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stars {
  display: flex;
  gap: 4px;
  color: #fbbf24;
}

.rating-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.rating-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
}

.bar-label {
  width: 50px;
  color: var(--text-secondary);
}

.bar-track {
  flex-grow: 1;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--gradient-primary);
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.review-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-blue);
}

.author-name {
  font-weight: 600;
  font-size: 0.95rem;
}

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

.review-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Comments Form Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--border-color) 37%, var(--bg-tertiary) 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.skeleton-text {
  height: 12px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.comments-section h3 {
  margin-bottom: 1.5rem;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  outline: none;
  font-size: 0.95rem;
}

.form-control:focus {
  border-color: var(--color-blue);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

/* Call To Action (CTA) */
.cta-section {
  background: var(--gradient-dark);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  position: relative;
}

.cta-box {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.cta-box h2 {
  font-size: 2.25rem;
}

.cta-box p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
}

/* Footer Section */
footer {
  background: #070a12;
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2rem;
  color: var(--text-secondary);
}

[data-theme="light"] footer {
  background: #f1f5f9;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.footer-desc {
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: var(--gradient-primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text-primary);
  padding-left: 4px;
}

/* Footer Newsletter */
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-input {
  flex-grow: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 0.65rem 1rem;
  border-radius: 10px;
  color: var(--text-primary);
  outline: none;
  font-size: 0.85rem;
}

.newsletter-input:focus {
  border-color: var(--color-blue);
}

.newsletter-btn {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  padding: 0 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.newsletter-btn:hover {
  background: var(--gradient-hover);
}

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

/* Back To Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  border: none;
  outline: none;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Sticky Bottom Download Button (for Mobile) */
.sticky-download-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--card-bg);
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);
  border-top: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  display: none;
  justify-content: space-between;
  align-items: center;
  z-index: 998;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
}

.sticky-dl-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sticky-dl-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-green);
}

.sticky-dl-title {
  font-size: 0.85rem;
  font-weight: 700;
}

.sticky-dl-version {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.sticky-dl-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1200;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--color-blue);
  color: var(--text-primary);
  padding: 0.95rem 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  font-size: 0.9rem;
  transform: translateX(-120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.visible {
  transform: translateX(0);
}

.toast-success {
  border-color: var(--color-green);
}

/* Cookie Consent Banner */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 400px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 1005;
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.cookie-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.cookie-btn {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  border-radius: 8px;
}

/* PWA App Install Banner */
.pwa-install-banner {
  position: fixed;
  top: 85px;
  right: 20px;
  max-width: 320px;
  background: var(--bg-secondary);
  border: 1px solid var(--color-green);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  z-index: 1004;
  display: none;
  flex-direction: column;
  gap: 0.75rem;
}

.pwa-install-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pwa-install-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.pwa-install-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* Download Countdown Interface */
.download-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.countdown-radial {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--color-blue) 100%, var(--bg-tertiary) 0%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.countdown-radial::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  background: var(--bg-secondary);
  border-radius: 50%;
  z-index: 1;
}

.countdown-number {
  position: relative;
  z-index: 2;
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Breadcrumbs navigation */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.85rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
  color: var(--text-muted);
}

.breadcrumbs li.active {
  color: var(--text-primary);
  font-weight: 500;
}

/* 404 Layout */
.error-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-height) - 300px);
  text-align: center;
  gap: 1.5rem;
}

.error-code {
  font-size: 8rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

/* Offline Page Layout */
.offline-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
  background: var(--bg-primary);
}

/* Responsiveness adjustments */
@media (max-width: 1024px) {
  h1 { font-size: 2.2rem; }
  .hero-title { font-size: 3rem; }
  .hero-grid { gap: 2.5rem; }
}

@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .badge-wrapper, .hero-cta {
    justify-content: center;
  }
  
  .hero-metadata {
    max-width: 500px;
    width: 100%;
  }
  
  .app-desc-grid {
    grid-template-columns: 1fr;
  }
  
  .toc-card {
    display: none; /* Hide sticky table of contents on smaller screens */
  }
  
  .reviews-summary {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .rating-score {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .newsletter-form {
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }
  
  .nav-links {
    display: none; /* JS will handle menu toggle overlay */
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .search-container {
    max-width: 160px;
  }
  
  .sticky-download-bar {
    display: flex;
  }
  
  body {
    padding-bottom: 70px; /* offset for sticky mobile bar */
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .pros-cons-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.85rem; }
  .hero-title { font-size: 2.2rem; }
  .hero-cta .btn {
    width: 100%;
  }
  .hero-metadata {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .app-table td {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
  }
}

.share-btn {
  transition: all var(--transition-fast) !important;
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25) !important;
  filter: brightness(1.05);
}
