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

:root {
  --red: #e63946;
  --red-dark: #c1121f;
  --gold: #f4a261;
  --dark: #0d0d0d;
  --dark2: #161616;
  --dark3: #1e1e1e;
  --dark4: #252525;
  --border: #2a2a2a;
  --text: #f0f0f0;
  --text2: #aaaaaa;
  --text3: #666666;
  --green: #2a9d8f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--dark); color: var(--text);
  font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
  font-size: 15px; line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; }

/* ── IMAGE PLACEHOLDERS ── */
/* Card thumbnail (64×64) */
.img-placeholder-sm {
  width: 64px; height: 64px; border-radius: 14px;
  background: var(--dark3);
  border: 2px dashed var(--border);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
  font-size: 9px; color: var(--text3);
  text-align: center; line-height: 1.3;
}
.img-placeholder-sm img {
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 12px;
}

/* Detail page large icon (100×100) */
.img-placeholder-lg {
  width: 100px; height: 100px; border-radius: 20px;
  background: var(--dark3);
  border: 2px dashed var(--border);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
  font-size: 10px; color: var(--text3);
  text-align: center; line-height: 1.4;
}
.img-placeholder-lg img {
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 18px;
}

/* Detail page wide screenshot / banner */
.img-placeholder-banner {
  width: 100%; height: 180px;
  background: var(--dark3);
  border: 2px dashed var(--border);
  border-radius: 12px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden; margin-bottom: 16px;
  font-size: 12px; color: var(--text3);
  text-align: center; gap: 6px;
}
.img-placeholder-banner img {
  width: 100%; height: 100%; object-fit: cover;
}
.ph-icon { font-size: 28px; }
.ph-label { font-size: 11px; color: var(--text3); }

/* ── HEADER ── */
header {
  background: #000; border-bottom: 2px solid var(--red);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo { font-size: 18px; font-weight: 800; color: #fff; }
.logo span { color: var(--red); }

nav { display: flex; gap: 4px; }
nav a {
  padding: 6px 12px; border-radius: 6px;
  font-size: 13px; font-weight: 500; color: var(--text2);
  transition: all .2s;
}
nav a:hover, nav a.active { background: var(--red); color: #fff; }

.hamburger { display: none; cursor: pointer; padding: 8px; }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: #fff; margin: 4px 0; border-radius: 2px;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a0005 50%, #0d0d0d 100%);
  text-align: center; padding: 48px 16px 40px;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: clamp(22px, 5vw, 36px); font-weight: 800;
  line-height: 1.2; margin-bottom: 10px;
}
.hero h1 span { color: var(--red); }
.hero p { color: var(--text2); font-size: 14px; max-width: 580px; margin: 0 auto 20px; }

.search-box {
  display: flex; max-width: 480px; margin: 0 auto;
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
}
.search-box input {
  flex: 1; background: none; border: none; outline: none;
  padding: 12px 16px; color: var(--text); font-size: 14px; font-family: inherit;
}
.search-box input::placeholder { color: var(--text3); }
.search-box button {
  background: var(--red); border: none; color: #fff;
  padding: 12px 20px; cursor: pointer; font-size: 18px; transition: background .2s;
}
.search-box button:hover { background: var(--red-dark); }

/* ── TELEGRAM BANNER ── */
.tg-banner {
  background: #1a1a2e; border: 1px solid #2463eb44;
  display: flex; align-items: center; justify-content: center;
  gap: 12px; padding: 10px 16px; font-size: 13px; flex-wrap: wrap;
}
.tg-banner a {
  background: #2463eb; color: #fff;
  padding: 6px 16px; border-radius: 6px; font-weight: 600;
  font-size: 12px; display: flex; align-items: center; gap: 6px;
}

/* ── SECTION TITLE ── */
.section-title {
  max-width: 1100px; margin: 0 auto;
  padding: 28px 16px 12px; font-size: 18px; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: ''; display: block; width: 4px; height: 20px;
  background: var(--red); border-radius: 2px;
}

/* ── CATEGORY FILTER TAGS ── */
.cat-tags {
  max-width: 1100px; margin: 0 auto;
  padding: 0 16px 20px; display: flex; flex-wrap: wrap; gap: 8px;
}
.cat-tag {
  background: var(--dark3); border: 1px solid var(--border);
  color: var(--text2); padding: 6px 14px;
  border-radius: 20px; font-size: 12px; font-weight: 500;
  cursor: pointer; transition: all .2s;
}
.cat-tag:hover, .cat-tag.active { background: var(--red); border-color: var(--red); color: #fff; }

/* ── APP GRID ── */
.app-grid {
  max-width: 1100px; margin: 0 auto; padding: 0 16px 24px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px;
}

/* ── APP CARD ── */
.app-card {
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; display: block;
  transition: border-color .2s, transform .2s;
}
.app-card:hover { border-color: var(--red); transform: translateY(-2px); }

.card-banner {
  position: relative; display: flex; align-items: center;
  gap: 14px; padding: 14px 16px; background: var(--dark3);
}
.card-info { flex: 1; min-width: 0; }
.card-info h3 {
  font-size: 14px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 3px;
}
.card-info .card-sub { font-size: 11px; color: var(--text2); }
.card-info .card-stars { color: var(--gold); font-size: 11px; margin-top: 2px; }

.updated-badge {
  position: absolute; top: 8px; right: 8px;
  background: var(--green); color: #fff;
  font-size: 9px; font-weight: 700;
  padding: 2px 7px; border-radius: 20px; letter-spacing: .5px;
}

.card-meta {
  padding: 10px 16px; display: flex; justify-content: space-between;
  border-top: 1px solid var(--border);
}
.meta-item { text-align: center; }
.meta-item .val { font-size: 13px; font-weight: 600; color: var(--gold); }
.meta-item .lbl { font-size: 10px; color: var(--text3); }

.card-actions {
  padding: 12px 16px; display: flex; gap: 8px;
  border-top: 1px solid var(--border);
}
.btn-download {
  flex: 1; background: var(--red); color: #fff; border: none;
  border-radius: 8px; padding: 10px; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .2s;
}
.btn-download:hover { background: var(--red-dark); }
.btn-tg {
  background: var(--dark4); color: var(--text2);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 14px; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; text-decoration: none;
}
.btn-tg:hover { border-color: #2463eb; color: #2463eb; }

/* ── APP DETAIL PAGE ── */
.app-detail {
  max-width: 860px; margin: 0 auto; padding: 24px 16px 60px;
}
.breadcrumb {
  font-size: 12px; color: var(--text3);
  margin-bottom: 20px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--red); }

.app-header {
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px; margin-bottom: 16px;
}
.app-header-top {
  display: flex; gap: 20px; align-items: flex-start; margin-bottom: 20px;
}
.app-header-info { flex: 1; min-width: 0; }
.app-header-info h1 {
  font-size: clamp(18px, 4vw, 24px); font-weight: 800;
  line-height: 1.2; margin-bottom: 8px;
}
.app-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.app-cat-tag {
  background: var(--dark3); border: 1px solid var(--border);
  color: var(--red); font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 20px;
}

.app-specs {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px;
}
.spec-row {
  background: var(--dark3); border-radius: 8px; padding: 10px 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.spec-row .s-label { font-size: 12px; color: var(--text2); }
.spec-row .s-val   { font-size: 13px; font-weight: 600; color: var(--gold); }

.rating-line {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.rating-big { font-size: 30px; font-weight: 800; }
.stars-lg { color: var(--gold); font-size: 18px; letter-spacing: 2px; }
.rating-info { font-size: 12px; color: var(--text3); }

.download-btns { display: flex; gap: 10px; }
.btn-dl-main {
  flex: 1; background: var(--red); color: #fff; border: none;
  border-radius: 10px; padding: 14px; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .2s; text-decoration: none;
}
.btn-dl-main:hover { background: var(--red-dark); }
.btn-dl-tg {
  background: #2463eb; color: #fff; border: none;
  border-radius: 10px; padding: 14px 20px; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; gap: 8px;
  transition: background .2s; text-decoration: none;
}
.btn-dl-tg:hover { background: #1d4fbf; }

/* ── DESCRIPTION SECTIONS ── */
.desc-section {
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px; margin-bottom: 14px;
}
.desc-section h2 {
  font-size: 15px; font-weight: 700; margin-bottom: 14px;
  color: var(--red); text-transform: uppercase; letter-spacing: .5px;
}
.desc-section p {
  color: var(--text2); font-size: 14px; line-height: 1.8; margin-bottom: 10px;
}
.desc-section p:last-child { margin-bottom: 0; }

.steps { counter-reset: step; list-style: none; }
.steps li {
  counter-increment: step;
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 12px; color: var(--text2); font-size: 14px;
}
.steps li::before {
  content: counter(step); background: var(--red); color: #fff;
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0; margin-top: 1px;
}

/* ── SEO TAGS ── */
.seo-tags {
  max-width: 860px; margin: 0 auto; padding: 0 16px 20px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.seo-tag {
  background: var(--dark2); border: 1px solid var(--border);
  color: var(--text3); font-size: 11px; padding: 3px 10px; border-radius: 4px;
}

/* ── RELATED APPS ── */
.related-grid {
  max-width: 860px; margin: 0 auto; padding: 0 16px 100px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px;
}

/* ── STICKY DOWNLOAD ── */
.sticky-dl {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--red); color: #fff; text-align: center;
  padding: 14px; font-size: 15px; font-weight: 700;
  z-index: 200; cursor: pointer; text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* ── CATEGORY HERO ── */
.cat-hero {
  background: linear-gradient(135deg, #0d0d0d, #1a0005);
  padding: 36px 16px 28px; text-align: center;
  border-bottom: 1px solid var(--border);
}
.cat-hero h1 { font-size: clamp(20px, 4vw, 30px); font-weight: 800; }
.cat-hero h1 span { color: var(--red); }
.cat-hero p { color: var(--text2); font-size: 13px; margin-top: 8px; }

/* ── FOOTER ── */
footer {
  background: #000; border-top: 1px solid var(--border);
  padding: 32px 16px 20px; margin-top: 40px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px; margin-bottom: 24px;
}
.footer-col h4 {
  font-size: 13px; font-weight: 700; color: var(--red);
  margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px;
}
.footer-col a {
  display: block; color: var(--text2); font-size: 13px;
  margin-bottom: 7px; transition: color .2s;
}
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 16px;
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text3);
}
.footer-bottom a { color: var(--text3); }
.footer-bottom a:hover { color: var(--red); }

/* ── STATIC PAGES ── */
.static-page { max-width: 860px; margin: 0 auto; padding: 32px 16px 60px; }
.static-page h1 { font-size: 26px; font-weight: 800; margin-bottom: 20px; }
.static-page h2 { font-size: 18px; font-weight: 700; color: var(--red); margin: 24px 0 10px; }
.static-page p, .static-page li {
  color: var(--text2); font-size: 14px; line-height: 1.8; margin-bottom: 8px;
}
.static-page ul { padding-left: 20px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { display: none; }
  .hamburger { display: block; }
  nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 60px; left: 0; right: 0;
    background: #000; padding: 12px; border-bottom: 1px solid var(--border);
    z-index: 99;
  }
  .app-grid { grid-template-columns: 1fr; }
  .app-header-top { flex-direction: column; }
  .img-placeholder-lg { width: 80px; height: 80px; }
  .app-specs { grid-template-columns: 1fr; }
  .download-btns { flex-direction: column; }
  .related-grid { grid-template-columns: 1fr; }
  .img-placeholder-banner { height: 140px; }
}
