/* =========================================================
   DESIGN TOKENS
   Ink navy + signal-lime tech palette, distinctive and warm
   ========================================================= */
:root {
  --ink: #10131f;
  --ink-2: #1a1e30;
  --paper: #f5f6fb;
  --card: #ffffff;
  --border: #e8e9f3;
  --text: #1c1e2b;
  --muted: #6b6f85;
  --lime: #c6f135;
  --lime-dark: #9fca12;
  --coral: #ff5470;
  --coral-dark: #e63e5c;
  --green: #16a34a;
  --green-dark: #0f7c38;
  --indigo: #5b5fef;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(16,19,31,.06);
  --shadow-md: 0 10px 30px rgba(16,19,31,.10);
  --shadow-lg: 0 20px 50px rgba(16,19,31,.16);
}

* { font-family: 'Hind Siliguri', 'Sora', sans-serif; }
h1, h2, h3, .display-font, .navbar-brand, .hero-title, .btn, .section-title, .app-card-body h6, .app-card-body h5 {
  font-family: 'Sora', 'Hind Siliguri', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--text);
}
a { color: inherit; }
::selection { background: var(--lime); color: var(--ink); }

/* Scrollbar */
::-webkit-scrollbar { height: 8px; width: 8px; }
::-webkit-scrollbar-thumb { background: #c7c9dc; border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }

/* =========================================================
   NAVBAR
   ========================================================= */
.main-navbar {
  background: var(--ink);
  padding: 16px 0;
}
.navbar-brand {
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -.01em;
}
.brand-mark {
  width: 34px; height: 34px;
  background: var(--lime);
  color: var(--ink);
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.navbar-nav .nav-link {
  color: #b7bad0 !important;
  font-weight: 500;
  padding: 8px 16px !important;
}
.navbar-nav .nav-link:hover { color: #fff !important; }
.nav-search { max-width: 320px; }
.nav-search input {
  background: #1e2236; border: 1px solid #2b3049; color: #fff;
  border-radius: 50px 0 0 50px !important; padding: 10px 18px;
}
.nav-search input::placeholder { color: #7b7f97; }
.nav-search input:focus { background: #1e2236; color: #fff; box-shadow: none; border-color: var(--lime); }
.btn-search {
  background: var(--lime); color: var(--ink); border: none; font-weight: 600;
  border-radius: 0 50px 50px 0 !important; padding: 10px 20px;
}
.btn-search:hover { background: var(--lime-dark); color: var(--ink); }

.dropdown-menu { border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow-md); padding: 8px; }
.dropdown-item { border-radius: 8px; padding: 8px 12px; font-weight: 500; }
.dropdown-item:hover { background: var(--paper); }

/* Category strip */
.category-strip {
  background: var(--ink-2);
  border-top: 1px solid #262b42;
  padding: 12px 0;
}
.chip-scroll {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 2px;
  scrollbar-width: none;
}
.chip-scroll::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  background: #1e2236; color: #cdd0e3;
  border: 1px solid #2b3049;
  padding: 7px 16px; border-radius: 50px;
  font-size: .85rem; font-weight: 500; text-decoration: none;
  transition: .15s;
}
.cat-chip:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }

/* =========================================================
   HERO
   ========================================================= */
.hero-section {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding-bottom: 70px !important;
}
.hero-section::before {
  content: '';
  position: absolute; top: -120px; right: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(198,241,53,.18), transparent 70%);
}
.hero-section::after {
  content: '';
  position: absolute; bottom: -140px; left: -100px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,84,112,.16), transparent 70%);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(198,241,53,.12); color: var(--lime);
  border: 1px solid rgba(198,241,53,.3);
  padding: 6px 16px; border-radius: 50px;
  font-size: .8rem; font-weight: 600; letter-spacing: .03em;
  margin-bottom: 20px;
}
.hero-title {
  font-weight: 700; font-size: 3rem; letter-spacing: -.02em;
  position: relative; z-index: 1;
}
.hero-title span {
  color: var(--lime);
  position: relative;
}
.hero-subtitle { opacity: .75; margin-bottom: 34px; font-size: 1.1rem; position: relative; z-index: 1; }
.hero-search { max-width: 620px; position: relative; z-index: 1; }
.hero-search input {
  border-radius: 50px 0 0 50px !important; padding: 16px 24px; border: none;
  font-size: 1rem;
}
.hero-search input:focus { box-shadow: none; }
.hero-search button {
  border-radius: 0 50px 50px 0 !important; padding: 16px 30px; font-weight: 700;
  background: var(--lime); color: var(--ink); border: none;
}
.hero-search button:hover { background: var(--lime-dark); }
.hero-stats {
  display: flex; gap: 36px; margin-top: 36px; position: relative; z-index: 1;
  flex-wrap: wrap;
}
.hero-stats .stat b { font-size: 1.5rem; font-weight: 700; display: block; color: #fff; }
.hero-stats .stat span { color: #9296ac; font-size: .85rem; }

/* =========================================================
   SECTION TITLES
   ========================================================= */
.section-title {
  font-weight: 700; margin-bottom: 22px; font-size: 1.4rem;
  display: flex; align-items: center; gap: 10px;
}
.section-title .tag {
  font-size: .7rem; font-weight: 600; text-transform: uppercase;
  background: var(--ink); color: var(--lime);
  padding: 3px 10px; border-radius: 6px; letter-spacing: .05em;
}

/* =========================================================
   APP CARDS
   ========================================================= */
.app-card-link { text-decoration: none; color: inherit; }
.app-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: all .22s cubic-bezier(.2,.8,.2,1);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.app-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--lime), var(--indigo));
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.app-card:hover::before { transform: scaleX(1); }
.app-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

.featured-card { display: flex; flex-direction: row; align-items: center; text-align: left; gap: 16px; }
.app-icon-lg { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.featured-card .app-icon-lg { margin-bottom: 0; flex-shrink: 0; }
.app-card-body h5, .app-card-body h6 { font-weight: 600; margin-bottom: 4px; }
.app-meta { display: flex; justify-content: center; gap: 14px; font-size: .82rem; color: var(--muted); margin-top: 10px; font-weight: 500; }
.featured-card .app-meta { justify-content: flex-start; }

.type-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  padding: 3px 9px; border-radius: 50px; margin-top: 8px;
}
.type-badge.playstore { background: var(--indigo); color: #fff; }
.type-badge.upload { background: var(--green); color: #fff; }

/* Mini card (popular) */
.app-card-mini { background: var(--card); border-radius: 14px; padding: 14px; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: .2s; }
.app-card-mini:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.app-card-mini img { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 8px; object-fit: cover; }

/* =========================================================
   APP DETAILS PAGE
   ========================================================= */
.app-detail-hero {
  background: var(--ink); color: #fff; padding: 48px 0; margin-bottom: -1px;
  position: relative; overflow: hidden;
}
.app-detail-hero::before {
  content: ''; position: absolute; top: -100px; right: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(198,241,53,.14), transparent 70%);
}
.app-icon-xl { width: 108px; height: 108px; border-radius: 24px; object-fit: cover; box-shadow: var(--shadow-lg); flex-shrink: 0; }
.btn-download {
  background: var(--lime); color: var(--ink); font-weight: 700; border-radius: 50px; padding: 14px 36px; border: none;
  box-shadow: 0 8px 24px rgba(198,241,53,.25);
  transition: .2s;
}
.btn-download:hover { color: var(--ink); background: var(--lime-dark); transform: translateY(-2px); }
.screenshot-scroll { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; }
.screenshot-img { height: 400px; border-radius: 16px; box-shadow: var(--shadow-md); }
.app-description { line-height: 1.85; color: #444; }
.app-info-table { border-radius: 12px; overflow: hidden; }
.app-info-table th { width: 40%; color: var(--muted); font-weight: 500; border-color: var(--border); }
.app-info-table td { border-color: var(--border); }

.sidebar-box { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.related-app-item { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; padding: 10px 0; border-bottom: 1px solid var(--border); transition: .15s; }
.related-app-item:last-child { border-bottom: none; }
.related-app-item:hover { padding-left: 4px; }
.related-app-item img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; }

.content-card { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-bottom: 24px; }

/* Category header */
.category-header { background: var(--ink); color: #fff; padding: 34px; border-radius: var(--radius); margin-bottom: 30px; }
.category-header h2 { font-weight: 700; }
.category-header p { color: #a8abc0; margin: 0; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ink); color: #9296ac; margin-top: 80px; }
.site-footer h5, .site-footer h6 { color: #fff; font-weight: 600; }
.footer-brand { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.footer-links a { color: #9296ac; text-decoration: none; line-height: 2.1; font-size: .92rem; }
.footer-links a:hover { color: var(--lime); }
.site-footer hr { border-color: #262b42; }
.site-footer .btn-outline-light { border-color: #363b56; }
.site-footer .btn-outline-light:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }

/* =========================================================
   PAGINATION / MISC
   ========================================================= */
.pagination .page-link { color: var(--text); border-color: var(--border); font-weight: 500; border-radius: 8px; margin: 0 3px; }
.pagination .active .page-link { background: var(--ink); border-color: var(--ink); color: var(--lime); }

.alert { border-radius: 12px; border: none; }

/* Responsive */
@media (max-width: 767px) {
  .hero-title { font-size: 2.1rem; }
  .hero-search .input-group { flex-wrap: nowrap; }
  .featured-card { flex-direction: column; text-align: center; }
  .featured-card .app-meta { justify-content: center; }
}
