@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #090d1b;
  --surface: rgba(21, 27, 50, 0.78);
  --surface-solid: #141a31;
  --border: rgba(255, 255, 255, 0.1);
  --text: #f6f7ff;
  --muted: #a9b0c9;
  --primary: #8d65ff;
  --primary-light: #b6a0ff;
  --accent: #35d7be;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  background:
    radial-gradient(circle at 50% -20%, #263773 0%, transparent 42%),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.background-glow {
  position: fixed;
  z-index: -1;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
  pointer-events: none;
}

.glow-one {
  top: 30%;
  left: -220px;
  background: #7152eb;
}

.glow-two {
  right: -200px;
  bottom: 0;
  background: #22bfa9;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(9, 13, 27, 0.72);
  backdrop-filter: blur(18px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: white;
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), #ca61ed);
  box-shadow: 0 8px 20px rgba(141, 101, 255, 0.35);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  font-weight: 700;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.telegram-button,
.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.telegram-button {
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid rgba(182, 160, 255, 0.34);
  background: rgba(141, 101, 255, 0.12);
  color: #dfd6ff;
}

.telegram-button:hover,
.download-button:hover {
  transform: translateY(-2px);
}

.telegram-button:hover {
  background: rgba(141, 101, 255, 0.24);
}

.hero {
  padding: 92px 0 68px;
}

.hero-content {
  max-width: 760px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  color: var(--primary-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin: 14px auto 16px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

h1 span {
  color: var(--primary-light);
}

.hero p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.notice-box {
  display: flex;
  align-items: flex-start;
  max-width: 675px;
  margin: 30px auto 0;
  padding: 15px 18px;
  gap: 12px;
  border: 1px solid rgba(53, 215, 190, 0.2);
  border-radius: 15px;
  text-align: left;
  background: rgba(53, 215, 190, 0.07);
}

.notice-icon {
  display: grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #042d27;
  font-size: 13px;
  font-weight: 800;
  background: var(--accent);
}

.notice-box p {
  color: #c3eee7;
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
}

.mods-section {
  padding: 24px 0 80px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2,
.guide-heading h2 {
  margin: 7px 0 0;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.mod-count {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.04);
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.chip {
  min-height: 39px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.035);
  transition: 0.2s ease;
}

.chip:hover {
  border-color: rgba(182, 160, 255, 0.55);
  color: white;
}

.chip[aria-selected="true"] {
  border-color: transparent;
  color: white;
  background: linear-gradient(135deg, var(--primary), #a65ded);
  box-shadow: 0 9px 20px rgba(141, 101, 255, 0.25);
}

.mod-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.mod-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 0.25s ease, transform 0.25s ease;
  animation: cardEnter 0.45s ease both;
}

.mod-card:hover {
  border-color: rgba(182, 160, 255, 0.45);
  transform: translateY(-6px);
}

.mod-thumbnail {
  position: relative;
  display: block;
  height: 270px;
  overflow: hidden;
  background:
    linear-gradient(135deg, #292d55, #171b31);
}

.mod-thumbnail.image-error::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  content: "Không thể tải ảnh";
  color: var(--muted);
  font-size: 13px;
}

.mod-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.45s ease;
}

.mod-card:hover .mod-thumbnail img {
  transform: scale(1.09);
  filter: brightness(0.78);
}

.image-overlay {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  opacity: 0;
  color: white;
  font-size: 11px;
  font-weight: 700;
  background: rgba(9, 13, 27, 0.7);
  backdrop-filter: blur(7px);
  transform: translateY(8px);
  transition: 0.3s ease;
}

.mod-card:hover .image-overlay {
  opacity: 1;
  transform: translateY(0);
}

.mod-content {
  padding: 18px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  min-height: 22px;
  gap: 6px;
  margin-bottom: 9px;
}

.tag {
  padding: 4px 8px;
  border-radius: 5px;
  color: #cfc3ff;
  font-size: 10px;
  font-weight: 700;
  background: rgba(141, 101, 255, 0.16);
}

.mod-content h3 {
  margin-bottom: 9px;
  font-size: 18px;
  line-height: 1.35;
}

.mod-description {
  min-height: 62px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.mod-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.updated-text {
  color: #8189a5;
  font-size: 10px;
}

.download-button {
  min-height: 37px;
  padding: 0 13px;
  color: white;
  font-size: 12px;
  background: linear-gradient(135deg, var(--primary), #a65ded);
  box-shadow: 0 8px 18px rgba(141, 101, 255, 0.24);
}

.empty-state {
  display: flex;
  grid-column: 1 / -1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  gap: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: white;
}

.empty-state span {
  font-size: 13px;
}

.guide-section {
  padding: 0 0 80px;
}

.guide-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 55px;
  padding: 42px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    linear-gradient(130deg, rgba(141, 101, 255, 0.13), transparent 44%),
    var(--surface);
  box-shadow: var(--shadow);
}

.guide-heading p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.guide-steps {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 20px;
  list-style: none;
}

.guide-step {
  display: flex;
  gap: 15px;
}

.step-number {
  display: grid;
  flex: 0 0 auto;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid rgba(182, 160, 255, 0.32);
  border-radius: 10px;
  color: var(--primary-light);
  font-size: 11px;
  font-weight: 800;
  background: rgba(141, 101, 255, 0.12);
}

.guide-step h3 {
  margin: 1px 0 5px;
  font-size: 14px;
}

.guide-step p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  color: #78809b;
  font-size: 12px;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .mod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-card {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .header-content {
    min-height: 70px;
  }

  .brand small {
    display: none;
  }

  .telegram-button {
    min-height: 37px;
    padding: 0 11px;
    font-size: 11px;
  }

  .hero {
    padding: 65px 0 45px;
  }

  .hero p {
    font-size: 14px;
  }

  .notice-box {
    padding: 13px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-list {
    margin: 22px 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .chip {
    flex: 0 0 auto;
  }

  .mod-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .mod-thumbnail {
    height: 245px;
  }

  .image-overlay {
    opacity: 1;
    transform: translateY(0);
  }

  .guide-card {
    padding: 25px 20px;
    border-radius: 18px;
  }

  .guide-section {
    padding-bottom: 55px;
  }
}