:root {
  --av-radius: 16px;
  --av-radius-sm: 10px;
  --av-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --av-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --av-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --av-primary-grad: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
  --av-accent-grad: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

.min-w-0 { min-width: 0; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card { border-radius: var(--av-radius); }

/* Glassmorphism Navbar */
.navbar-cave {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background-color: rgba(255, 255, 255, 0.88) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
[data-bs-theme="dark"] .navbar-cave {
  background-color: rgba(26, 31, 44, 0.88) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--av-primary-grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* App Icons & Badges */
.app-icon {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 16px;
  background: var(--bs-secondary-bg);
  flex: none;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.app-logo-box {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.app-icon-lg {
  width: 124px;
  height: 124px;
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border: 3px solid var(--bs-body-bg);
  background: var(--bs-body-bg);
  object-fit: cover;
}
.app-platform-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--bs-body-bg);
}

/* App cards & Home list */
.app-card {
  border-color: var(--bs-border-color-translucent);
  box-shadow: var(--av-shadow-sm);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  color: inherit;
  background: var(--bs-body-bg);
}
.app-card:hover {
  box-shadow: var(--av-shadow-md);
  transform: translateY(-3px);
  border-color: rgba(var(--bs-primary-rgb), 0.4);
}
.app-card .card-body {
  padding: 1.15rem;
}

/* Hero Section */
.hero {
  background: radial-gradient(circle at 50% 0%, rgba(var(--bs-primary-rgb), 0.12) 0%, rgba(var(--bs-primary-rgb), 0.01) 70%, transparent 100%);
  border-bottom: 1px solid var(--bs-border-color-translucent);
}
.hero-search {
  max-width: 660px;
}
.hero-search .form-control {
  border-radius: 50px 0 0 50px !important;
  font-size: 1.05rem;
  padding-left: 1.25rem;
  border-color: var(--bs-border-color);
}
.hero-search .btn {
  border-radius: 0 50px 50px 0 !important;
  padding-left: 1.6rem;
  padding-right: 1.6rem;
  font-weight: 600;
}
.hero-search .input-group-text {
  border-radius: 50px 0 0 50px;
  border-right: none;
  padding-left: 1.25rem;
}
.hero-search .form-control {
  border-left: none;
}

/* App Hero Banner */
.app-hero {
  background: linear-gradient(145deg, rgba(var(--bs-primary-rgb), 0.06) 0%, rgba(var(--bs-primary-rgb), 0.01) 100%);
  border: 1px solid var(--bs-border-color-translucent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border-radius: 20px;
}

/* Primary Download Button */
.btn-download {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  background: var(--av-primary-grad) !important;
  border: none !important;
  box-shadow: 0 6px 18px rgba(13, 110, 253, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border-radius: 12px;
}
.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(13, 110, 253, 0.45);
}
.btn-download:active {
  transform: translateY(0);
}

/* Trust Badges */
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--bs-secondary-bg);
  color: var(--bs-body-color);
  border: 1px solid var(--bs-border-color-translucent);
}

/* Screenshots Gallery */
.shots-track {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
}
.shots-track::-webkit-scrollbar {
  height: 6px;
}
.shots-track::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}
.shot-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-secondary-bg);
  position: relative;
}
.shot-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}
.shot-item img {
  height: 380px;
  width: auto;
  max-width: 280px;
  object-fit: cover;
  display: block;
}
.shot-zoom-overlay {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: scale(0.9);
}
.shot-item:hover .shot-zoom-overlay {
  opacity: 1;
  transform: scale(1);
}
.shot-lightbox-img {
  max-height: 82vh;
  max-width: 90vw;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

/* Specs & Details */
.desc {
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.75;
}
.sha {
  word-break: break-all;
  font-size: 0.8rem;
  background: var(--bs-tertiary-bg);
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
}
.spec-item {
  background: var(--bs-secondary-bg-subtle);
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid var(--bs-border-color-translucent);
}
.spec-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--bs-secondary-color);
  font-weight: 700;
  margin-bottom: 2px;
}
.spec-val {
  font-size: 0.95rem;
  font-weight: 600;
}
.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--av-primary-grad);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

/* Admin Styles */
.info-table th { width: 38%; }
.stat-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; }
.shot-thumb { position: relative; }
.shot-thumb img { height: 120px; border-radius: 10px; border: 1px solid var(--bs-border-color); }
.shot-thumb .btn { position: absolute; top: 4px; right: 4px; padding: 0 .4rem; }
.diff-box { background: var(--bs-tertiary-bg); border-radius: 10px; padding: .6rem .85rem; white-space: normal; word-break: break-word; max-height: 220px; overflow: auto; }
.diff-new { background: var(--bs-success-bg-subtle); }

@media (max-width: 575.98px) {
  .shot-item img { height: 270px; max-width: 210px; }
  .app-icon-lg { width: 96px; height: 96px; border-radius: 22px; }
  .btn-download { width: 100%; }
}

