/* DEFINE COLOR */
:root {
  --primary: #ff7300;
  --primary-2: #ff7866;
  --background-box: #0f0f16;
  --background-body: #0a0a0a;
}

/* COMMON  */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--background-body);
}

body {
  font-family: "Poppins", sans-serif;
  font-weight: bold;
}

/* HEADING */
h1.heading {
  text-align: center;
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -3px;
  background: linear-gradient(135deg, #fff 0%, var(--primary) 50%, #fff 100%);
  background-size: 200% 200%;
  animation: gradient-shift 3s ease-in-out infinite;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(0, 153, 255, 0.5));
  cursor: default;
  user-select: none;
}


@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 2;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
  justify-content: center;
}

/* TOOL CARD */
.tool-card {
  background: rgba(0, 0, 0, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 2.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: visible;
  backdrop-filter: blur(10px);
  opacity: 0;
  animation: fadeInUp 0.6s forwards;
  text-decoration: none;
}

.tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 51, 51, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s;
  border-radius: var(--card-radius);
}

.popular-banner {
  position: absolute;
  top: -1px;
  right: -1px;
  background: linear-gradient(135deg, #ae00ff 0%, #e369d7 100%);
  color: #fff;
  padding: 0.3rem 1.2rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 0 16px 0 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 5px 15px rgba(51, 204, 255, 0.3);
  animation: shimmer 3s ease-in-out infinite;
}

.new-banner {
  position: absolute;
  top: -1px;
  right: -1px;
  background: linear-gradient(135deg, #0650f0 0%, #16a0f5 100%);
  color: #fff;
  padding: 0.3rem 1.2rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 0 16px 0 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
  animation: shimmer 3s ease-in-out infinite;
  z-index: 2;
}

.tool-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 160, 51, 0.3);
  box-shadow: 0 20px 40px rgba(255, 136, 0, 0.2), 0 0 80px rgba(255, 94, 0, 0.3);
}

.tool-image {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  transition: all 0.4s;
}

.tool-card:hover .tool-image {
  transform: scale(1.1) rotate(5deg);
}
.tool-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tool-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff88;
  display: inline-block;
  animation: pulse 2s infinite;
}
.tool-description {
  color: #999999;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.tool-includes {
  margin-top: 15px;
  text-align: center;
}

.tool-includes img {
  width: 24px;
  height: 24px;
  margin: 5px;
  vertical-align: middle;
  position: relative;
}

.tool-includes img:hover::after {
  content: attr(alt);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
}

.toggle-container {
  text-align: center;
  margin-top: 40px;
}

.toggle-btn {
  background-color: #ffffff;
  color: #2c3e50;
  border: 2px solid #ffffff;
  padding: 12px 24px;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-family: "Poppins", sans-serif;
}

.toggle-btn:hover {
  background-color: #ffffff;
  transform: scale(1.05);
}

.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.popup-content {
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  color: #2c3e50;
}

.popup-buttons {
  margin-top: 20px;
}

.popup-btn {
  margin: 0 10px;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: bold;
}

.agree-btn {
  background-color: #2ecc71;
  color: #ffffff;
}

.close-btn {
  background-color: #e74c3c;
  color: #ffffff;
}

.bonus-section {
  display: none;
  margin-top: 40px;
}

.animated-badge {
  animation: badgePulse 1s infinite alternate;
  background-color: #ff0000;
}

@keyframes badgePulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(1.1);
    opacity: 0.9;
  }
}

/* DISCORD BUTTON */
.btn-discord {
  margin: 20px auto 50px;
  background: #ff6a00;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none;
  width: 200px;
  padding: 15px;
  border: none;
  border-radius: 50px;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.discord-icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.2s ease;
}

/* REFERRAL BAR */
.referral-bar {
  background: rgba(51, 194, 255, 0.05);
  border-bottom: 1px solid rgba(51, 204, 255, 0.1);
  color: #ffffff;
  padding: 0.75rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.referral-bar-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-sub);
}

/* ANNOUNCEMENT BAR */
.announcement-bar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 12px 32px;
  border-radius: 50px;
  margin: 64px auto 3rem auto;
  max-width: 460px;
  box-shadow: var(--glow);
  animation: pulse-glow 3s ease-in-out infinite;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 0.3s;
}

/* SUBTITLE */
.subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #f0f0f0;
  line-height: 1.6;
  font-weight: 300;
  animation: fadeInUp 0.8s 0.3s forwards;
}

.subtitle .subtitle-head {
  font-weight: 600;
  font-size: 1.3rem;
}

.subtitle a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 400;
  transition: all 0.3s;
  position: relative;
}

/* SEARCH BAR */
.search-bar-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeInUp 0.8s 0.5s forwards;
}

.search-box {
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  border: 1px solid rgba(255, 51, 51, 0.2);
  font-size: 1rem;
  padding: 0.75rem 1.5rem 0.75rem 3rem;
  border-radius: 50px;
  width: 400px;
  max-width: 90%;
  outline: none;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
  background-size: 1.2rem;
  background-repeat: no-repeat;
  background-position: 1rem center;
  background-image: url("../img/search.svg");
}
.categories {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  opacity: 0;
  animation: fadeInUp 0.8s 0.7s forwards;
}

.cat-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #999999;
  font-weight: 400;
  font-size: 0.9rem;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.cat-btn.active,
.cat-btn:hover {
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.cat-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.cat-btn.active::before {
  width: 100%;
  height: 100%;
  border-radius: 50px;
}

.no-results {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  color: #fff;
}

.no-results svg {
  width: 80px;
  margin-bottom: 2rem;
  opacity: 0.3;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  margin-top: auto;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 20px rgba(51, 204, 255, 0.4);
  animation: badge-glow 2s ease-in-out infinite;
}

.badge.green {
  background: #c300ff;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}
/* ANIMATION */
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 30px rgba(0, 153, 255, 0.3);
  }

  50% {
    box-shadow: 0 0 60px rgba(0, 153, 255, 0.5), 0 0 100px rgba(0, 153, 255, 0.2);
  }
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes fadeInUp {
  100% {
    opacity: 1;
    transform: translateY(0);
  }

  0% {
    opacity: 0;
    transform: translateY(20px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}


.ripple {
  position: absolute;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  background: radial-gradient(circle, rgba(51, 204, 255, 0.3) 0%, transparent 60%);
  pointer-events: none;
  animation: ripple-effect 0.6s ease-out;
}

@keyframes ripple-effect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#catBar {
  display: none;
}


.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;

    background: #0f1115;
    border-bottom: 1px solid #1b1e24;

    z-index: 999;
}

.container-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    height: 100%;
    padding: 0 120px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 160px;
}

.logo:hover img {
  animation: wiggle 0.5s infinite ease-in-out;
}

.logo span {
    color: white;
    font-size: 20px;
    font-weight: 600;
}

/* Support button */
.support-btn {
    color: #bfc4cc;
    text-decoration: none;
    font-size: 16px;

    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support img {
  width: 46px;
  margin-right: 6px;
}

.support:hover img {
    animation: wiggle 0.5s infinite ease-in-out;
}

.support-btn:hover {
    color: white;
}

/* Content padding (để không bị che bởi header cố định) */
.content {
    padding-top: 90px;
}

.img {
  display: block;
}

@keyframes wiggle {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(2deg); }
    50% { transform: rotate(-2deg); }
    75% { transform: rotate(2deg); }
    100% { transform: rotate(0deg); }
}