/* ═══ VARIABLES & RESET ═══ */
:root {
  --color-bg: #0f1623;
  --color-card: #161d2e;
  --color-primary: #f97316;
  --color-secondary: #3b82f6;
  --color-success: #10b981;
  --color-accent: #8b5cf6;
  --color-text: #f1f5f9;
  --color-muted: #94a3b8;
  --color-border: #1e2a3e;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Noto Sans', sans-serif;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(249, 115, 22, 0.15);
  --transition: all 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-primary);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin-top: 0; }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Main content wrapper */
main .container {
  padding-bottom: 3rem;
}

.breadcrumb {
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
  margin-bottom: 0;
}

/* Content blocks inside .container */
.content-section {
  padding: 2.5rem 0;
}

.content-section:first-of-type,
.container > .content-section:first-child {
  padding-top: 0;
}

.content-section > h2:first-child,
.content-panel > h2:first-child {
  margin-top: 0;
}

.content-panel {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  margin: 1.5rem 0;
}

.content-panel .download-box {
  margin-top: 1rem;
  border-color: var(--color-border);
}

main.container {
  padding-bottom: 3rem;
}

main.container > .content-section:first-child {
  padding-top: 0.5rem;
}

@media (min-width: 768px) {
  .content-panel {
    padding: 2.5rem 2rem;
    margin: 2rem 0;
  }
}

/* Subpage sections */
.section {
  padding: 2.5rem 0;
}

.section-alt {
  background: var(--color-card);
  margin: 2rem 0;
  padding: 2.5rem 0;
  border-radius: var(--radius);
}

main > .container .section-alt {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  border-radius: 0;
}

@media (min-width: 768px) {
  main > .container .section-alt {
    margin: 2rem 0;
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
  }
}

/* ═══ STICKY HEADER ═══ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 22, 35, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.site-header.shrink {
  padding: 0;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  max-width: 1140px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-text);
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.logo span {
  color: var(--color-primary);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

.nav-desktop a {
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--color-primary);
}

.btn-cta-nav {
  background: var(--color-success);
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
}

.btn-cta-nav:hover {
  background: #0d9668;
  color: #fff !important;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 1.25rem 1.5rem;
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  padding: 0.75rem 0;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 992px) {
  .nav-desktop { display: flex; }
  .hamburger { display: none; }
}

/* ═══ HERO ═══ */
.hero {
  padding: 3rem 0 4rem;
  background: linear-gradient(135deg, #0f1623 0%, #1a1520 40%, #1f1a14 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(249, 115, 22, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-play {
  background: var(--color-success);
  color: #fff;
}

.btn-play:hover {
  background: #0d9668;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.btn-apk {
  background: var(--color-primary);
  color: #fff;
}

.btn-apk:hover {
  background: #ea580c;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.hero-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero { padding: 4rem 0 5rem; }
}

/* ═══ TRUST / STATS BAR ═══ */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.trust-bar span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.rating-stars {
  color: #fbbf24;
  margin-bottom: 1rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stats-row--compact {
  max-width: 320px;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: var(--color-card);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.stat-item .stat-num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--color-muted);
}

@media (min-width: 576px) {
  .stats-row:not(.stats-row--compact) { grid-template-columns: repeat(4, 1fr); }
}

/* ═══ BREADCRUMB ═══ */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.breadcrumb a { color: var(--color-muted); }
.breadcrumb a:hover { color: var(--color-primary); }

/* ═══ APP INFO TABLE ═══ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--color-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.data-table th,
.data-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.data-table th {
  background: rgba(59, 130, 246, 0.15);
  font-family: var(--font-heading);
  font-weight: 600;
  width: 35%;
}

.data-table tr:last-child th,
.data-table tr:last-child td {
  border-bottom: none;
}

/* ═══ FEATURE CARDS ═══ */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-left-color: var(--color-primary);
}

.feature-card i {
  font-size: 1.75rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--color-muted);
  margin-bottom: 0;
  font-size: 0.95rem;
}

@media (min-width: 576px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ═══ HOW IT WORKS STEPS ═══ */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 2rem 0;
  position: relative;
}

.step-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  position: relative;
}

.step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 72px;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.step-content h3 { margin-bottom: 0.35rem; }
.step-content p { margin-bottom: 0; color: var(--color-muted); }

/* ═══ SUBJECTS TABLE ═══ */
.subjects-table .row-maths { background: rgba(59, 130, 246, 0.08); }
.subjects-table .row-physics { background: rgba(139, 92, 246, 0.08); }
.subjects-table .row-chem { background: rgba(16, 185, 129, 0.08); }
.subjects-table .row-bio { background: rgba(249, 115, 22, 0.08); }

.subjects-table td,
.subjects-table th {
  text-align: center;
}

.subjects-table td:first-child,
.subjects-table th:first-child {
  text-align: left;
  font-weight: 600;
}

.check-yes { color: var(--color-success); }

/* ═══ DOWNLOAD BOX ═══ */
.download-box {
  background: var(--color-card);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
}

.download-options {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.download-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.download-card.recommended {
  border-color: var(--color-success);
}

.download-card h3 {
  margin-bottom: 0.75rem;
}

.download-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.subpage-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.subpage-link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  transition: var(--transition);
}

.subpage-link-card:hover {
  border-color: var(--color-primary);
  color: var(--color-text);
  transform: translateX(4px);
}

.subpage-link-card i {
  font-size: 1.5rem;
  color: var(--color-primary);
}

@media (min-width: 576px) {
  .download-options { grid-template-columns: 1fr 1fr; }
  .subpage-links { grid-template-columns: repeat(2, 1fr); }
}

/* ═══ FREE VS PREMIUM TABLE ═══ */
.premium-table .check { color: var(--color-success); }
.premium-table .cross { color: #ef4444; }

/* ═══ INSTALL STEPS ═══ */
.install-steps {
  counter-reset: install;
  list-style: none;
  padding: 0;
}

.install-steps li {
  counter-increment: install;
  padding: 0.75rem 0 0.75rem 3rem;
  position: relative;
  border-left: 2px solid var(--color-border);
  margin-left: 1rem;
}

.install-steps li::before {
  content: counter(install);
  position: absolute;
  left: -1rem;
  top: 0.65rem;
  width: 28px;
  height: 28px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
}

.tip-box {
  background: rgba(59, 130, 246, 0.15);
  border-left: 4px solid var(--color-secondary);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

/* ═══ SCREENSHOTS GRID ═══ */
.screenshots-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.screenshots-grid img {
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

@media (min-width: 576px) {
  .screenshots-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .screenshots-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ═══ COMPETITOR COMPARISON ═══ */
.competitor-table th:first-child,
.competitor-table td:first-child {
  font-weight: 500;
}

.competitor-table .col-doubtnut {
  background: rgba(249, 115, 22, 0.15);
  font-weight: 700;
  color: var(--color-primary);
}

/* ═══ PROS CONS ═══ */
.pros-cons {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.pros-box,
.cons-box {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.pros-box {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

.cons-box {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.3);
}

.pros-box ul,
.cons-box ul {
  list-style: none;
  padding: 0;
}

.pros-box li::before {
  content: '✅ ';
}

.cons-box li::before {
  content: '⚠ ';
}

@media (min-width: 768px) {
  .pros-cons { grid-template-columns: 1fr 1fr; }
}

/* ═══ FAQ ACCORDION ═══ */
.faq-list {
  margin-top: 1.5rem;
}

.faq-list details {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-list summary {
  padding: 1rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--color-primary);
}

.faq-list details[open] summary::after {
  content: '−';
}

.faq-list .faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
}

/* ═══ RELATED PAGES CARDS ═══ */
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.related-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
  color: var(--color-text);
  display: block;
}

.related-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: var(--color-text);
}

.related-card i {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

@media (min-width: 576px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .related-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ═══ VERSION HISTORY ═══ */
.version-list {
  list-style: none;
  padding: 0;
}

.version-list li {
  padding: 1rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  display: grid;
  gap: 0.25rem;
}

.version-list .ver-num {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
}

/* ═══ AUTHOR BOX ═══ */
.author-box {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem;
  background: var(--color-card);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  margin: 2rem 0 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* ═══ PAGE HERO (subpages) ═══ */
.page-hero {
  padding: 2.5rem 0 3rem;
  background: linear-gradient(135deg, #0f1623, #1a1520);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
}

.page-hero .breadcrumb {
  padding-top: 0;
  padding-bottom: 1rem;
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.page-hero .hero-cta {
  margin-top: 1.5rem;
}

.page-hero p {
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 720px;
}

/* ═══ SUBJECT CARDS (JEE/NEET) ═══ */
.subject-cards {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.subject-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.subject-card i {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .subject-cards { grid-template-columns: repeat(3, 1fr); }
}

/* ═══ FOOTER ═══ */
.site-footer {
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-muted);
}

.disclaimer {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  font-style: italic;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ═══ DOWNLOAD MODAL ═══ */
.download-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 22, 35, 0.85);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.download-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.download-modal {
  width: 100%;
  max-width: 420px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--shadow);
  overflow: hidden;
  color: var(--color-text);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s ease;
}

.download-modal-overlay.is-open .download-modal {
  transform: scale(1) translateY(0);
}

.download-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 0.75rem;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

.download-modal-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.1rem;
}

.download-modal-title-wrap {
  flex: 1;
  padding-right: 1.5rem;
}

.download-modal-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  line-height: 1.35;
}

.download-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--color-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition);
}

.download-modal-close:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.download-modal-body {
  padding: 1rem 1.25rem 1.25rem;
}

.download-modal-desc {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.download-modal-desc strong {
  color: var(--color-text);
}

.download-modal-progress-wrap {
  display: none;
  margin-bottom: 1rem;
}

.download-modal-progress-wrap.is-active {
  display: block;
}

.download-modal-status {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin: 0 0 0.5rem;
}

.download-modal-progress-track {
  height: 6px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  overflow: hidden;
}

.download-modal-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), #fb923c);
  border-radius: 999px;
  transition: width 0.15s linear;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.45);
}

.download-modal-actions .btn-modal-download {
  width: 100%;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-size: 1rem;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.download-modal-actions .btn-modal-download:hover {
  background: #ea580c;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.download-modal-actions .btn-modal-download:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.download-modal-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 1rem 1.25rem;
}

.download-modal-tip {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.78rem;
  color: var(--color-muted);
  line-height: 1.45;
  margin: 0;
}

.download-modal-tip + .download-modal-tip {
  margin-top: 0.65rem;
}

.download-modal-tip i {
  color: var(--color-primary);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.download-section .btn-apk {
  cursor: pointer;
  font-family: inherit;
}

#download-section {
  scroll-margin-top: 5rem;
}

/* ═══ BACK TO TOP ═══ */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.back-to-top.visible {
  display: flex;
}

.back-to-top:hover {
  background: #ea580c;
  transform: translateY(-3px);
}

/* ═══ TROUBLESHOOTING / ISSUE CARDS ═══ */
.issue-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.issue-card h3 {
  color: var(--color-primary);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* ═══ LEGAL PAGES ═══ */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content ul {
  color: var(--color-muted);
}

.legal-updated {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.contact-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.contact-card-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.contact-card h2 {
  margin-top: 0;
}

.contact-email {
  margin: 1.25rem 0;
}

.contact-email a {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--color-primary);
  word-break: break-all;
}

.contact-email a:hover {
  color: var(--color-text);
}

.contact-note {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 0;
}

/* ═══ TABLE SCROLL (mobile) ═══ */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
  border-radius: var(--radius);
}

.table-responsive .data-table {
  min-width: 480px;
  margin: 0;
}

/* ═══ RESPONSIVE / MOBILE ═══ */
@media (max-width: 991px) {
  .nav-desktop .btn-cta-nav {
    display: none;
  }
}

@media (max-width: 767px) {
  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 2rem 0 2.5rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .trust-bar {
    gap: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-item .stat-num {
    font-size: 1.4rem;
  }

  .page-hero {
    padding: 1.75rem 0 2rem;
  }

  .page-hero h1 {
    font-size: 1.5rem;
  }

  .page-hero .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .content-section {
    padding: 2rem 0;
  }

  .content-panel {
    padding: 1.5rem 1rem;
    margin: 1.25rem 0;
  }

  .download-box {
    padding: 1.25rem;
  }

  .download-card {
    padding: 1.25rem;
  }

  .download-card .btn {
    width: 100%;
    justify-content: center;
  }

  .subpage-link-card {
    flex-direction: column;
    text-align: center;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .subject-cards {
    grid-template-columns: 1fr;
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }

  .steps .step-item {
    flex-direction: column;
    gap: 0.75rem;
  }

  .step-item:not(:last-child)::after {
    display: none;
  }

  .data-table {
    font-size: 0.85rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.65rem 0.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
  }

  .footer-links li {
    margin-bottom: 0;
  }

  .author-box {
    flex-direction: column;
    text-align: center;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }

  .logo {
    font-size: 1.15rem;
  }

  .faq-list summary {
    font-size: 0.95rem;
    padding: 0.9rem 1rem;
  }

  .legal-content {
    padding: 0 0.25rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.45rem;
  }

  .download-modal {
    max-height: 90vh;
    overflow-y: auto;
  }

  .download-modal-title {
    font-size: 0.95rem;
  }

  .screenshots-grid {
    grid-template-columns: 1fr;
  }

  .download-badges {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }

  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 375px) {
  .btn {
    min-height: 44px;
  }
}

@font-face {
  font-family: 'Poppins';
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sans';
  font-display: swap;
}
