* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}

:root {
  --pink: #c73568;
  --pink-dark: #9f2c55;
  --pink-soft: #fff0f6;
  --pink-border: #f4cbd6;
  --green: #8aaa49;
  --green-dark: #6f922f;
  --text: #33272d;
  --muted: #78616a;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(199, 53, 104, 0.14);
}

body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, #ffd9e8 0%, transparent 32%),
    radial-gradient(circle at top right, #eaffc9 0%, transparent 28%),
    linear-gradient(135deg, #fff7fb 0%, #fff0f6 45%, #f8ffe9 100%);
  background-attachment: fixed;
}

a {
  text-decoration: none;
}

button {
  border: none;
  cursor: pointer;
  font-weight: 800;
  transition: 0.25s ease;
}

.site-container {
  width: min(1180px, 94%);
  margin: 28px auto 60px;
}

/* HEADER */

.header {
  position: sticky;
  top: 14px;
  z-index: 50;
  min-height: 92px;
  padding: 18px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 190, 215, 0.85);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.9);
}

.logo {
  font-size: 30px;
  font-weight: 900;
  color: var(--pink);
  font-family: Georgia, serif;
  letter-spacing: -1px;
  white-space: nowrap;
  text-shadow: 0 8px 22px rgba(199, 53, 104, 0.18);
}

.header nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 246, 250, 0.78);
  border: 1px solid rgba(255, 210, 225, 0.9);
}

.header nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: #3d3338;
  font-size: 15px;
  font-weight: 800;
  transition: 0.25s ease;
}

.header nav a:hover,
.header nav a.active {
  color: white;
  background: linear-gradient(135deg, #ff8fb7, #c73568);
  box-shadow: 0 10px 22px rgba(199, 53, 104, 0.22);
}

/* USER AREA */

.user-area {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.download-top,
.panel-btn,
.hero button,
.category-card button,
.post-card button {
  padding: 13px 26px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow:
    0 14px 28px rgba(111, 146, 47, 0.25),
    inset 0 1px 0 rgba(255,255,255,0.45);
}

.download-top:hover,
.panel-btn:hover,
.hero button:hover,
.category-card button:hover,
.post-card button:hover {
  transform: translateY(-3px);
}

.user-info {
  max-width: 220px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 14px 7px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255, 180, 210, 0.9);
  box-shadow: 0 12px 28px rgba(199, 53, 104, 0.14);
}

.user-info img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  padding: 2px;
  background: linear-gradient(135deg, #ff8fb7, var(--green));
}

.user-info span {
  font-size: 14px;
  font-weight: 900;
  color: var(--pink-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-btn {
  background: linear-gradient(135deg, #ff8fb7, var(--pink));
}

/* HERO */

.hero {
  position: relative;
  min-height: 510px;
  margin-top: 20px;
  padding: 70px 90px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 34px;
  background:
    linear-gradient(90deg, rgba(199, 53, 104, 0.55), rgba(255, 182, 197, 0.2)),
    url("https://picsum.photos/1200/600?random=20");
  background-size: cover;
  background-position: center;
  box-shadow: 0 28px 75px rgba(199, 53, 104, 0.22);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 25%, rgba(255,255,255,0.25), transparent 28%),
    linear-gradient(90deg, rgba(0,0,0,0.14), transparent 72%);
  pointer-events: none;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 570px;
  color: white;
}

.hero-text h1 {
  font-size: 46px;
  line-height: 1.1;
  margin-bottom: 30px;
  letter-spacing: -2px;
}

.hero-text h1 span {
  display: block;
  font-size: 58px;
  font-family: Georgia, serif;
  font-style: italic;
}

.hero-text p {
  display: inline-block;
  margin-top: 26px;
  padding: 16px 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.76);
  color: #4d3e45;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  backdrop-filter: blur(10px);
}

/* COUNTERS */

.download-counter {
  margin-bottom: 26px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.counter-card {
  min-width: 170px;
  padding: 18px 22px;
  border-radius: 22px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.85);
  box-shadow: 0 15px 35px rgba(199, 53, 104, 0.16);
}

.counter-card strong {
  display: block;
  font-size: 30px;
  color: var(--pink);
  line-height: 1;
}

.counter-card span {
  display: block;
  margin-top: 7px;
  color: #4d3e45;
  font-size: 14px;
  font-weight: 800;
}

/* TITLES */

.section-title,
.downloads-header {
  margin: 65px 0 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}


.section-title a {
  display: none;
}

.section-title h2,
.downloads-header h2 {
  position: relative;
  font-size: 38px;
  color: var(--pink);
  background: linear-gradient(135deg, var(--pink), #ff8fb7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.popular-title h2::before {
  content: "✨ ";
  -webkit-text-fill-color: initial;
}

.section-title h2::after,
.downloads-header h2::after {
  content: "";
  display: block;
  width: 90px;
  height: 6px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--green));
}

.tabs {
  display: none;
}

/* TOP DOWNLOADS */

.categories {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr);
  gap: 26px;
}

.top-downloads-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.category-card,
.post-card,
.popular-box {
  overflow: hidden;
  border-radius: 28px;
  background: white;
  border: 1px solid rgba(199, 53, 104, 0.13);
  box-shadow:
    0 18px 45px rgba(199, 53, 104, 0.13),
    inset 0 2px 0 rgba(255,255,255,0.8);
}

.category-card {
  transition: 0.3s ease;
}

.category-card:hover,
.post-card:hover {
  transform: translateY(-6px);
}

.category-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: 0.35s ease;
}

.category-card:hover img,
.post-card:hover img {
  transform: scale(1.05);
}

.category-card h3 {
  padding: 20px 22px 12px;
  font-size: 22px;
  line-height: 1.25;
  color: #3b2d33;
}

.category-card button {
  width: calc(100% - 44px);
  margin: 0 22px 24px;
}

/* POPULAR SIDE BOX */

.popular-box {
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.7), transparent 35%),
    linear-gradient(180deg, #ffd5e2, #ffb8cf);
}

.popular-box h3 {
  color: var(--pink-dark);
  font-size: 24px;
  text-align: center;
  margin-bottom: 22px;
}

.popular-box button {
  display: none;
}

.popular-item {
  display: flex;
  gap: 14px;
  padding: 12px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.62);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.65);
  transition: 0.25s ease;
}

.popular-item:hover {
  transform: translateX(6px);
  background: rgba(255,255,255,0.82);
}

.popular-item img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
}

.popular-item div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.popular-item strong {
  color: #3b2d33;
  font-size: 14px;
  line-height: 1.25;
}

.popular-item span {
  margin-top: 6px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 900;
}

/* POSTS */

.posts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.post-card {
  transition: 0.3s ease;
}

.post-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: 0.35s ease;
}

.post-card .content {
  padding: 20px;
}

.post-category {
  display: none;
}

.post-card h3 {
  min-height: 48px;
  font-size: 18px;
  line-height: 1.3;
  color: #3b2d33;
  margin-bottom: 16px;
}

.post-stats {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.post-stats span {
  flex: 1;
  padding: 8px 9px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink-dark);
  border: 1px solid #f5c6d7;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.post-card button {
  width: 100%;
  background: linear-gradient(135deg, #ff8fb7, var(--pink));
  box-shadow: 0 12px 24px rgba(199, 53, 104, 0.22);
}

/* EMPTY / LOADING TEXT */

.posts p,
.top-downloads-cards p {
  grid-column: 1 / -1;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #fff0f5);
  color: var(--muted);
  font-weight: 800;
  text-align: center;
  box-shadow: 0 12px 30px rgba(199, 53, 104, 0.1);
}

/* MODAL */

.modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(43, 30, 36, 0.58);
  backdrop-filter: blur(10px);
}

.modal-content {
  width: min(500px, 92%);
  padding: 22px;
  text-align: center;
  position: relative;
  border-radius: 26px;
  background: white;
  box-shadow: 0 30px 80px rgba(0,0,0,0.22);
}

.modal-content img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 15px;
}

#closeModal {
  position: absolute;
  right: 18px;
  top: 12px;
  font-size: 28px;
  cursor: pointer;
  color: var(--pink);
}

#modalCategory {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  color: var(--pink);
  background: #ffdbe7;
  font-weight: 900;
}

/* LOADER */

#pageLoader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 240, 247, 0.72);
  backdrop-filter: blur(14px);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

#pageLoader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-card {
  width: min(320px, 88%);
  padding: 32px 26px;
  text-align: center;
  border-radius: 28px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(255, 190, 215, 0.9);
  box-shadow: 0 25px 70px rgba(199, 53, 104, 0.22);
}

.loader-spinner {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border: 5px solid #ffd6e5;
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spinLoader 0.8s linear infinite;
}

.loader-card h2 {
  color: var(--pink);
  font-size: 26px;
  margin-bottom: 8px;
}

.loader-card p {
  color: #6b4a57;
  font-weight: 800;
}

@keyframes spinLoader {
  to {
    transform: rotate(360deg);
  }
}

/* RESPONSIVO */

@media (max-width: 1050px) {
  .header {
    flex-wrap: wrap;
    justify-content: center;
  }

  .header nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 24px;
  }

  .categories {
    grid-template-columns: 1fr;
  }

  .top-downloads-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .posts {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .site-container {
    width: min(94%, 680px);
  }

  .hero {
    min-height: auto;
    padding: 48px 28px;
  }

  .hero-text h1 {
    font-size: 34px;
  }

  .hero-text h1 span {
    font-size: 42px;
  }

  .download-counter {
    justify-content: center;
  }

  .counter-card {
    flex: 1;
    min-width: 140px;
    text-align: center;
  }

  .top-downloads-cards,
  .posts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .header {
    position: relative;
    top: 0;
    padding: 18px;
    border-radius: 24px;
  }

  .logo {
    font-size: 26px;
  }

  .header nav a {
    font-size: 14px;
    padding: 9px 12px;
  }

  .user-area {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero {
    border-radius: 26px;
  }

  .hero-text h1 {
    letter-spacing: -1px;
  }

  .section-title h2,
  .downloads-header h2 {
    font-size: 31px;
  }

  .top-downloads-cards,
  .posts {
    grid-template-columns: 1fr;
  }

  .post-card img,
  .category-card img {
    height: 300px;
  }
}
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 10px;
}

.pagination button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  color: var(--pink);
  border: 1px solid var(--pink-border);
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(199, 53, 104, 0.12);
}

.pagination button:hover,
.pagination button.active {
  color: white;
  background: linear-gradient(135deg, #ff8fb7, var(--pink));
  transform: translateY(-2px);
}

/* FOOTER */
.site-footer {
  margin-top: 90px;
  background: linear-gradient(135deg, #fff7fa, #ffe1ec);
  border-top: 1px solid #ffd0df;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "💎";
  position: absolute;
  left: 30px;
  top: 20px;
  font-size: 90px;
  opacity: 0.06;
  transform: rotate(-18deg);
}

.site-footer::after {
  content: "♡";
  position: absolute;
  right: 40px;
  bottom: 20px;
  font-size: 110px;
  opacity: 0.08;
  color: #c73568;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 45px 25px 35px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 35px;
  position: relative;
  z-index: 1;
}

.footer-column {
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,208,223,0.9);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 14px 32px rgba(199,53,104,0.08);
}

.footer-column h3 {
  color: #c73568;
  margin-bottom: 14px;
  font-size: 19px;
}

.footer-column p {
  color: #5f5257;
  line-height: 1.7;
  font-size: 15px;
}

.footer-column a {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #5f5257;
  text-decoration: none;
  margin-bottom: 10px;
  font-weight: 700;
  transition: 0.25s;
}

.footer-column a:hover {
  color: #ff4d8d;
  transform: translateX(5px);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid #ffd0df;
  background: rgba(255,255,255,0.55);
  text-align: center;
  padding: 18px;
  color: #6b5a61;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 850px) {
  .footer-container {
    grid-template-columns: 1fr;
    padding: 35px 18px 28px;
  }

  .footer-column {
    text-align: center;
  }

  .footer-column a {
    margin-left: auto;
    margin-right: auto;
  }
}
.exclusive-index-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4d8d, #8b5cf6);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.post-stats button {
  flex: 1;
  padding: 8px 9px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink-dark);
  border: 1px solid #f5c6d7;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  box-shadow: none;
}

.post-stats button:hover {
  transform: translateY(-2px);
  background: white;
}