/*############*/
/*### FONTS ###*/
/*############*/

.font-changa1 {
  font-family: Changa One;
}
.font-gpixel {
  font-family: Geist Pixel;
}
.font-sanchez {
  font-family: Sanchez;
}
.font-bungee {
  font-family: Bungee;
}
.font-rowdies {
  font-family: Rowdies;
}
.font-days1 {
  font-family: Days One;
}
.font-oswald {
  font-family: Oswald;
}
.font-ubuntu {
  font-family: Ubuntu;
}
.font-courier {
  font-family: Courier Prime;
}
.font-gscode {
  font-family: Google Sans Code;
}
.font-viga {
  font-family: Viga;
}
.font-russo1 {
  font-family: Russo One;
}
.font-paytone1 {
  font-family: Paytone One;
}
.font-alkatra {
  font-family: Alkatra;
}
.font-unbounded {
  font-family: Unbounded;
}
.sora-title {
  font-family: "Sora", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
}
.font-passion1 {
  font-family: Passion1;
}

/*-------------------------*/
/* Tag class */
/*-------------------------*/

body {
  font-family: Outfit;
}

    /* --- Black Glassmorphism Nav Base --- */
    .crypto-navbar {
      display: flex;
      flex-direction: column;
      background: rgb(15, 23, 42);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      position: sticky;
      top: 0;
      z-index: 1000;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    }

    /* Top Widget Area */
    .nav-top-widget {
      width: 100%;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Main Navbar Content Row */
    .nav-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 24px;
      width: 100%;
      position: relative;
    }

    /* Brand Logo */
    .nav-brand {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      font-family: 'Changa One', sans-serif;
      text-shadow: 0 0 8px rgba(77, 166, 255, 0.5);
    }

    .brand-highlight {
      color: rgb(77, 166, 255);
    }

    /* Menu Links */
    .nav-links {
      display: flex;
      list-style: none;
      gap: 15px;
      align-items: center;
      margin: 0;
      padding: 0;
    }

    .nav-links li a {
      text-decoration: none;
      color: #ffffff;
      font-size: 0.95rem;
      font-weight: 500;
      padding: 8px 14px;
      border-radius: 8px;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    /* Hover effect */
    .nav-links li a:hover,
    .nav-links li a.active {
      color: rgb(77, 166, 255);
      background: rgba(77, 166, 255, 0.1);
    }

    /* Action Container (Desktop Right Align) */
    .nav-actions {
      display: flex;
      align-items: center;
      gap: 15px;
    }

    .btn-wallet {
      background: linear-gradient(135deg, rgb(77, 166, 255) 0%, #00b8ff 100%);
      color: white;
      font-weight: 700;
      padding: 8px 16px;
      border-radius: 20px;
      text-decoration: none;
      font-size: 0.88rem;
      display: flex;
      align-items: center;
      gap: 6px;
      border: none;
      white-space: nowrap;
    }

    .btn-wallet:hover {
      box-shadow: 0 0 15px rgba(77, 166, 255, 0.5);
      transform: translateY(-1px);
    }

    /* --- Animated Hamburger Button --- */
    .menu-toggle {
      display: none;
      width: 26px;
      height: 20px;
      position: relative;
      cursor: pointer;
      z-index: 1001;
    }

    .menu-toggle span {
      display: block;
      position: absolute;
      height: 3px;
      width: 100%;
      background: #ffffff;
      border-radius: 3px;
      opacity: 1;
      left: 0;
      transform: rotate(0deg);
      transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .menu-toggle span:nth-child(1) { top: 0px; }
    .menu-toggle span:nth-child(2) { top: 8px; }
    .menu-toggle span:nth-child(3) { top: 16px; }

    /* Animated Close (X) State */
    .menu-toggle.open span:nth-child(1) {
      top: 8px;
      transform: rotate(135deg);
      background: #ff4d4d;
    }

    .menu-toggle.open span:nth-child(2) {
      opacity: 0;
      left: -17px;
    }

    .menu-toggle.open span:nth-child(3) {
      top: 8px;
      transform: rotate(-135deg);
      background: #ff4d4d;
    }

    .menu-toggle.open:hover span {
      background: #ff1a1a;
}

    /* --- Responsive Rules (Mobile) --- */
    @media (max-width: 868px) {
      .menu-toggle {
        display: block;
      }

      .mobile-right-group {
        display: flex;
        align-items: center;
      }

      /* Dark mode toggle with gap on left of hamburger */
      .dark-mode-toggle-container {
        margin: 0 15px 0 0 !important;
        padding: 0 !important;
      }

      #theme-label {
        display: none;
      }

      .nav-container {
        padding: 12px 16px;
      }

      /* Slide Down & Slide Up Smooth Animation */
      .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgb(27, 41, 75);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: stretch;
        margin: 0;
        padding: 0px 20px;
        gap: 6px;
        border-bottom: 1px solid rgba(77, 166, 255, 0.2);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        z-index: 999;
      

        /* Animation Properties */
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        visibility: hidden;
        transition: max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1), 
                    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), 
                    padding 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0.7s;
      }

      .nav-links.active {
        max-height: 400px; /* Slide down effect offset */
        opacity: 1;
        padding: 16px 20px;
        visibility: visible;
      }

      .nav-links li a {
        color: #ffffff;
        padding: 12px 12px;
        font-size: 1rem;
      }

      .nav-links li a:hover,
      .nav-links li a.active {
        color: rgb(77, 166, 255);
        background: rgba(77, 166, 255, 0.15);
      }

      .nav-actions {
        display: none;
      }
    }

.sentence-container {
      opacity: 1;
      transition: opacity 0.6s ease-in-out;
    }
 .cursor {
      display: inline-block;
      width: 3px;
      height: 1.2em;
      background-color: #38bdf8;
      vertical-align: middle;
      margin-left: 4px;
      animation: blink 0.7s infinite;
    }

    @keyframes blink {
      0%, 100% { opacity: 1; }
      50% { opacity: 0; }
    }
 .sentence-container.fade-out {
      opacity: 0;
    }

  .pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #3fb950;
    border-radius: 50%;
    margin-right: 5px;
    display: inline-block;
    box-shadow: 0 0 0 rgba(63, 185, 80, 0.4);
    animation: pulse 1.8s infinite;
  }

  @keyframes pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.7);
    }
    70% {
      box-shadow: 0 0 0 8px rgba(63, 185, 80, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(63, 185, 80, 0);
    }
  }

.display-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  justify-content: center; 
  justify-items: stretch;
  gap: 20px;
  margin-bottom: 32px;
}

.grid-card {
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 16px;
  box-sizing: border-box;
}

.grid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* CARD HEADER SECTION */
.card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.card-title-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-title {
  font-family: "Sora", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
  line-height: 1.2;
}

.favicon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: contain;
  flex-shrink: 0;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge-tag {
  background: #0f172a;
  color: #fff;
  font-size: 10px;
  padding: 3px 6px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-tag-hot {
  background: #ff4d4d;
  color: #fff;
  padding: 2px 6px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  align-items: center;
}

.badge-tag-asphalt {
  background: #333333;
  color: #fff;
  padding: 2px 6px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  align-items: center;
}

.badge-tag-orange {
  background: #ff944d;
  color: #fff;
  padding: 2px 6px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  align-items: center;
}

.badge-tag-blue {
  background: #00ace6;
  color: #fff;
  padding: 2px 6px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  align-items: center;
}

.badge-tag-green {
  background: #00b359;
  color: #fff;
  padding: 2px 6px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  align-items: center;
}

.badge-tag-purple {
  background: #ff33cc;
  color: #fff;
  padding: 2px 6px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  align-items: center;
}

.counter-badge-tr {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: Geist Pixel;
  font-size: 12px;
  font-weight: bold;
  background: #666699;
  color: #ffffff;
  padding: 6px 10px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  text-align: center;
}

.counter-badge .counter-number {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
}

/* CARD BODY SECTION */
.card-body {
  flex-grow: 1;
  margin-bottom: 16px;
}

.card-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-features li {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.card-features li::before {
  content: "➲";
  
}

/* CARD FOOTER SECTION */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}

.badge-bl {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.counter-badge-bl {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: Geist Pixel;
  font-size: 12px;
  font-weight: bold;
  background: #666699;
  color: #ffffff;
  padding: 6px 10px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
}

.visit-btn {
  background: #333333;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing:0.1em;
  padding: 8px 12px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease;
}

.visit-btn:hover {
  background: #999999;
}

  /* Pagination Container Styling */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.pagination button, .pagination .page-link {
  padding: 8px 14px;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
  cursor: pointer;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
}

.pagination button.active, .pagination .page-link.active {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}
/* Active Page Button Styling */
.pagination button.active {
  font-weight: bold;
  background-color: #007bff;
  color: #ffffff;
  border-color: #007bff;
}

/* Disabled Prev/Next Buttons */
.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}