:root {
  --accent: #1e88e5;
  --muted: #666;
  --bg: #f0f3ff;
  --card: #ffffff;
  --grad: linear-gradient(135deg, #e8eeff 0%, #ffffff 70%);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  color: #111;
  background: var(--grad);
  animation: fadeIn 1s ease;
  scroll-behavior: smooth;
}

.container {
  max-width: 980px;
  margin: 32px auto;
  padding: 20px;
}

.header {
  display: flex;
  gap: 18px;
  align-items: center;
}

.icon {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  overflow: hidden;
  flex: 0 0 84px;
  box-shadow: 0 6px 18px rgba(16, 24, 40, .08);
}

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

.title {
  display: flex;
  flex-direction: column;
}

.app-name {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.subtitle {
  color: var(--muted);
  margin-top: 6px;
}

.rating {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stars {
  color: gold;
}

.download {
  margin-left: auto;
}

.btn {
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(30, 88, 160, .12);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(30, 88, 160, .12);
}

.card {
  background: var(--card);
  border-radius: 14px;
  padding: 18px;
  margin-top: 20px;
  box-shadow: 0 6px 30px rgba(16, 24, 40, .05);
  backdrop-filter: blur(8px);
}

.meta {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(16, 24, 40, .06);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.feature {
  background: rgba(255, 255, 255, 0.55);
  padding: 12px;
  border-radius: 14px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.about {
  margin-top: 18px;
  line-height: 1.6;
  color: #222;
}

.small {
  font-size: 13px;
  color: var(--muted);
}

footer {
  margin-top: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .6);
  z-index: 60;
}

.modal.open {
  display: flex;
}

.modal img {
  max-width: 92%;
  max-height: 86%;
  border-radius: 8px;
}

.star-rating {
  display: flex;
  gap: 4px;
  cursor: pointer;
  margin-top: 6px;
}

.star-rating i {
  font-size: 22px;
  color: #ccc;
  transition: .3s;
}

.star-rating i.active {
  color: gold;
}

.floating-download {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: #1e88e5;
  color: #fff;
  padding: 14px 20px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .25);
  z-index: 999;
  text-decoration: none;
  animation: fadeIn 1s ease;
}

.dark-mode {
  background: #0f0f0f;
  color: #eaeaea;
}

.dark-mode .card {
  background: rgba(30, 30, 30, 0.6);
  color: #eee;
  backdrop-filter: blur(6px);
}

.dark-toggle {
  position: fixed;
  top: 22px;
  right: 22px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #1e88e5;
  color: #fff;
  cursor: pointer;
  z-index: 999;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}

.skeleton-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.skeleton {
  height: 110px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #eeeeee 8%, #dddddd 18%, #eeeeee 33%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card,
.feature,
.gallery img {
  animation: fadeIn 0.8s ease;
}

section {
  scroll-margin-top: 110px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(16, 24, 40, .12);
  border-radius: 40px;
  padding: 8px 14px;
  display: flex;
  gap: 18px;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.dark-mode .bottom-nav {
  background: rgba(18, 18, 18, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-size: 12px;
}

.dark-mode .bottom-nav a {
  color: #ddd;
}

.bottom-nav a .icon {
  font-size: 18px;
}

.bottom-nav a.active {
  color: var(--accent);
  font-weight: 700;
}

@media(max-width: 880px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 600px) {
  .header {
    gap: 12px;
  }
  .container {
    padding: 12px;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .features {
    grid-template-columns: 1fr;
  }
}