/* Global height setup */
:root {
  --bg: #ffffff;
  --bg-dark: #fff;
  --bg2: #f7f7f9;
  --bg3: #f0f0f4;
  --bg4: #e7e7e7;
  --text: #1a1a2e;
  --text-dark: #212529;
  --text2: #4d4c4c;
  --text3: #8a8a9e;
  --accent: #AD1530;
  --accent2: #0f3460;
  --border: #0000001c;
  --radius: 12px;
  --footer-bg: #212529;
  --table-evn: #ffffff;
  --table-odd: #f9f9f9;
}

[data-theme="dark"] {
  --bg: #2d2d2d;
  --bg-dark: #1c1c1c;
  --bg4: #252525;
  --text: #f0f0f0;
  --text-dark: #e0e0e0;
  --text2: #9b9b9b;
  --text3: #fff;
  --card: #1e1e1e;
  --border: #ffffff4a;
  --footer-bg: var(--bg-dark);
  --table-evn: #2a2a2a;
  --table-odd: #1e1e1e;
}

html,
body {
  height: auto;
  background: linear-gradient(
    45deg,
    var(--bg),
    color-mix(in srgb, var(--accent) 15%, var(--bg))
  );
  color: var(--text);
  font-display: swap;
  /* transition: background 0.3s, color 0.3s; */
}

.navbar {
  background-color: var(--bg-dark) !important;
  color: var(--text) !important;
}

.text-dark,
.navbar-brand,
.pre-footer p,
.pre-footer ul,
.nav-item a {
  color: var(--text-dark) !important;
}

.pre-footer a {
  color: var(--accent) !important;
}

#desktop-search-input,
#burger-menu-search-input,
#upload-search-input,
.input-group-text,
.blog-image-container,
.dropdown-menu {
  background-color: var(--bg4) !important;
  color: var(--text);
  border-color: var(--border);
}

.dropdown-menu {
  max-height: 500px;
  overflow-y: auto;
}

.input-group button {
  background: var(--accent);
  border: none;
}

.text-muted {
  color: var(--text2) !important;
}

.footer {
  background: var(--footer-bg) !important;
}

.card,
.card div {
  background: var(--card, var(--bg));
  color: var(--text) !important;
}

.card {
  border: 1px solid var(--border) !important;
}

.card-body {
  border-top: 1px solid var(--border) !important;
}

.blog-content p span,
.blog-content h2 span,
.blog-content ol li span,
.blog-content h3 span,
.blog-content ul li span,
.dropdown-menu li a {
  color: var(--text) !important;
}

.blog-content a,
.btn-outline-primary {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}

.dropdown-item:hover {
  background-color: var(--bg);
}

.navbar-toggler {
  background-color: white;
}

#all-content-section {
  flex: 1;
}

/* Footer styles */
.footer {
  flex-shrink: 0;
}

.footer .list-inline-item {
  margin-bottom: 10px;
}

/* FIXED: Consolidated button grid definitions and added clear responsive breakpoints */
.button-grid {
  display: flex;
  flex-wrap: wrap;
  /* grid-template-columns: repeat(3, 1fr); */
  gap: 20px;
  justify-content: center;
  margin: 0 auto;
  /* max-width: 100%;
  width: 100%; */
}

/* FIXED: Consolidated media queries for better organization */
/* Mobile and tablet styles */
@media (max-width: 991.98px) {
  /* Search visibility for mobile */
  .desktop-search {
    display: none !important;
  }

  .mobile-search {
    display: block !important;
    width: 100%;
    margin: 10px 0;
  }

  .navbar-nav {
    margin-top: 10px;
    margin-bottom: 12px;
  }

  /* Button grid stays at 3 columns for small screens (defined in the main rule) */
}

/* Medium screens */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* .button-grid {
    grid-template-columns: repeat(5, 1fr);
  } */
}

/* Large screens */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* .button-grid {
    grid-template-columns: repeat(6, 1fr);
  } */
}

/* Extra large screens */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* .button-grid {
    grid-template-columns: repeat(7, 1fr);
  } */

  /* Search visibility for desktop */
  .desktop-search {
    display: flex !important;
    width: 220px;
  }

  .mobile-search {
    display: none !important;
  }
}

/* XXL screens */
@media (min-width: 1200px) {
  .button-grid {
    grid-template-columns: repeat(9, 1fr);
    max-width: 1200px;
  }

  /* Search visibility remains the same as large desktop */
  .desktop-search {
    display: flex !important;
    width: 220px;
  }

  .mobile-search {
    display: none !important;
  }
}

/* Button item styling */
.button-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  width: 100%;
  min-width: 0;
}

/* FIXED: Improved navbar styling organization */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000; /* FIXED: Added clear z-index for stacking context */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  margin-left: 12px !important;
}

.navbar-brand p {
  margin-bottom: 0;
  margin-top: 8px;
}

.navbar .nav-link {
  white-space: nowrap;
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
}

/* Login button styling */
.login-button {
  display: inline-block;
  padding: 5px 11px;
  color: white;
  text-decoration: none;
  border: 2px solid;
  border-radius: 5px;
  background-color: transparent;
  font-size: 14px;
  transition: all 0.3s ease;
}

/* FIXED: Organized search styling more logically */
.search-container {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.search-container:hover,
.search-container:focus-within {
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.15);
}

.search-input {
  border: none;
  background-color: transparent;
  color: #fff;
  padding-left: 15px;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
  box-shadow: none;
  background-color: transparent;
  color: #fff;
}

.search-button {
  background-color: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  padding: 0 15px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.search-button:hover {
  color: #fff;
}

/* FIXED: Organized instant button styles and reduced repetition */
.instant {
  position: relative;
  vertical-align: top;
  width: 94px;
  text-align: center;
  word-wrap: break-word;
  /* margin: 0 8px; */
}

/* Shape utilities */
.circle {
  border-radius: 50%;
}

/* FIXED: Consolidated loader styles */
.loader,
.loader-large,
#loading {
  border-style: solid;
  border-color: transparent;
  border-top-color: #747474;
  border-radius: 50%;
  animation: spin 2s linear infinite;
  display: none;
  position: absolute;
}

.loader {
  top: -2px;
  left: -1px;
  border-width: 5px;
  width: 94px;
  height: 94px;
}

.loader-large {
  border-width: 8px;
  width: 190px;
  height: 190px;
  margin: -1px 0 0 4px;
}

#loading {
  border-width: 5px;
  width: 32px;
  height: 32px;
  margin: 0 auto 40px;
  animation-duration: 1s;
  display: block; /* FIXED: Ensure visibility differs from other loaders */
  position: relative; /* FIXED: Different positioning from other loaders */
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Large instant layout */
.large-instant {
  position: relative;
  vertical-align: top;
  width: 200px;
  text-align: center;
  word-wrap: break-word;
}

.large-instant .instant-link {
  margin-top: 195px;
}

/* Instant action buttons */
.instant-action-button-icon {
  width: 25px;
  height: 25px;
  padding-left: 0.5px;
}

.instant-action-button {
  padding: 0;
  background: none;
  border: 0;
}

.result-page-instant-sharebox {
  margin: 8px 0 0 0;
}

.instant-link {
  font-size: 14px;
  font-weight: 500;
  margin-top: 8px;
  margin-bottom: 8px;
}

/* FIXED: Organized blog styling */
.blog-card {
  transition: transform 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px) scale(1.05); /* FIXED: Combined transformations */
}

.blog-image-container {
  height: 250px;
  overflow: hidden;
  background-color: #f8f9fa;
}

.blog-image-container img {
  width: 100%;
  height: 180px; /* FIXED: Conflicting with container height, using specific selector */
  object-fit: cover;
}

.blog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Empty blogs styling */
.no-blogs-container {
  padding: 80px 0;
  text-align: center;
}

.no-blogs-icon {
  font-size: 5rem;
  color: #6c757d;
  margin-bottom: 20px;
}

/* FIXED: Organized instant page extra buttons */
#instant-page-extra-buttons-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 20px auto;
  max-width: 900px;
}

.instant-page-extra-button {
  flex: 0 0 calc(33.33% - 20px);
  max-width: 280px;
  min-width: 250px;
  text-align: center;
  padding: 10px;
  color: white;
  border: none;
  font-size: 16px;
  background-color: #375a7f; /* FIXED: Consolidated repeated colors */
}

@media screen and (max-width: 768px) {
  .instant-page-extra-button {
    flex: 0 0 calc(50% - 20px);
  }
}

@media screen and (max-width: 480px) {
  .instant-page-extra-button {
    flex: 0 0 100%;
  }
}

/* Sound title styling */
.sound-title {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  height: 20px;
  line-height: 20px;
}

/* Load more container */
.load-more-container {
  text-align: center;
  margin: 30px 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.load-more-btn {
  background-color: var(--accent);
  color: white;
  padding: 6px 20px;
  border-radius: 4px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s;
  display: inline-block;
}

.load-more-btn:hover {
  background-color: #5a6268;
}

.load-more-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Button spinner */
.button-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 0.15em solid rgba(255, 255, 255, 0.5);
  border-right-color: white;
  border-radius: 50%;
  animation: button-spinner 0.75s linear infinite;
}

@keyframes button-spinner {
  to {
    transform: rotate(360deg);
  }
}

/* FIXED: Adjusted button item styling for small screens */
@media (max-width: 576px) {
  .button-grid {
    gap: 20px;
    /* padding: 0 10px; */
  }

  .button-item {
    margin-bottom: 12px;
  }

  .instant {
    padding: 5px;
  }
}

#buttonContainer-latest,
#buttonContainer-trending {
  /* width: 75%; */
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

@media (max-width: 767.98px) {
  /* #buttonContainer-latest,
  #buttonContainer-trending {
    width: 95%;
  } */
}

.desktop-banner-ad {
  width: 970px;
  min-height: 90px;
  height: auto;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  /* background-image: url(/static/landingpage/images/banner-ad-background.png); */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
}

.desktop-banner-ad > div,
.desktop-banner-ad iframe {
  width: 100%;
  height: auto;
  display: block;
  max-height: 250px;
}

.bottom-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}

@media (max-width: 768px) {
  .bottom-footer {
    grid-template-columns: 1fr;
  }
}

.dlte-btn {
  display: none;
}

.upld-snd-btn:hover .dlte-btn {
  display: block;
}

.sound-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
  height: fit-content;
}

.stage {
  display: flex;
  justify-content: center;
  padding: 10px 0 16px;
  position: relative;
}
.btn-mush {
  position: relative;
  width: 140px;
  height: 120px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-mush .cap {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 68px;
  border-radius: 50% 50% 46% 46% / 72% 72% 28% 28%;
  z-index: 3;
  transition: all 0.12s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-mush .cap::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 20px;
  width: 14px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.35),
    transparent 70%
  );
  pointer-events: none;
}

.btn-mush .lip {
  position: absolute;
  top: 54px;
  left: 50%;
  transform: translateX(-50%);
  width: 128px;
  height: 18px;
  border-radius: 50%;
  z-index: 3;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.1));
  pointer-events: none;
  transition: all 0.12s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-mush .base {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 112px;
  height: 36px;
  border-radius: 10px / 6px;
  background: linear-gradient(
    180deg,
    #e6e6e6 0%,
    #d0d0d0 20%,
    #c0c0c0 50%,
    #b0b0b0 80%,
    #c8c8c8 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 4px rgba(0, 0, 0, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.btn-mush .ped {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 18px;
  border-radius: 8px / 5px;
  background: linear-gradient(180deg, #3d3d3d, #1f1f1f);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  z-index: 1;
}

.btn-mush:hover .cap {
  transform: translateX(-50%) scale(1.05);
}

.btn-mush:active .cap {
  transform: translateX(-50%) scaleY(0.78) translateY(8px);
}

.stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 8px 0 14px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text2);
}

.stat .heart-icon {
  fill: var(--accent);
}

.stat svg {
  width: 15px;
  height: 15px;
}

.stat .eye-icon {
  fill: none;
  stroke: var(--text3);
  stroke-width: 2;
}

.stat .play-icon {
  fill: none;
  stroke: var(--text3);
  stroke-width: 2;
}

.actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto;
  padding-bottom: 20px;
}

.act-primary {
  background: var(--accent);
  color: #fff;
}

.act-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  border: none;
  transition: all 0.15s;
}

.act-secondary {
  color: var(--text);
  border: 1px solid var(--border);
  background: transparent;
}

.act-outline {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border);
}

.act-primary svg {
  fill: #fff;
  stroke: #fff;
}

.act-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.act-secondary svg {
  fill: none;
  stroke: var(--text2);
  stroke-width: 2;
}

.act-outline svg {
  fill: none;
  stroke: var(--text2);
  stroke-width: 2;
}

.act-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.25);
}

.act-secondary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.act-outline:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.desc-section {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 0 24px;
  border-top: 1px solid var(--border);
}

.desc-section p {
  font-size: 0.78rem;
  color: var(--text2);
  line-height: 1.65;
}

.related {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.related h3 {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.related-card .mini-btn:hover .mc {
  transform: translateX(-50%) scale(1.05);
}

.related-card .mini-btn:active .mc {
  transform: translateX(-50%) scaleY(0.78) translateY(8px);
}

.related-card .mini-btn {
  position: relative;
  width: 100%;
  height: 78px;
  cursor: pointer;
}

.blue {
  background:
    radial-gradient(
      ellipse at 40% 25%,
      rgba(255, 255, 255, 0.35),
      transparent 50%
    ),
    linear-gradient(135deg, #3b82f6 35%, #2563eb 65%);
  box-shadow:
    inset 0 -3px 6px rgba(0, 0, 0, 0.15),
    0 2px 4px rgba(0, 0, 0, 0.1);
}

.red {
  background:
    radial-gradient(
      ellipse at 40% 25%,
      rgba(255, 255, 255, 0.35),
      transparent 50%
    ),
    linear-gradient(135deg, #ef4444 35%, #dc2626 65%);
  box-shadow:
    inset 0 -3px 6px rgba(0, 0, 0, 0.15),
    0 2px 4px rgba(0, 0, 0, 0.1);
}

.green {
  background:
    radial-gradient(
      ellipse at 40% 25%,
      rgba(255, 255, 255, 0.35),
      transparent 50%
    ),
    linear-gradient(135deg, #22c55e 35%, #16a34a 65%);
  box-shadow:
    inset 0 -3px 6px rgba(0, 0, 0, 0.15),
    0 2px 4px rgba(0, 0, 0, 0.1);
}

.purple {
  background:
    radial-gradient(
      ellipse at 40% 25%,
      rgba(255, 255, 255, 0.35),
      transparent 50%
    ),
    linear-gradient(135deg, #a855f7 35%, #9333ea 65%);
  box-shadow:
    inset 0 -3px 6px rgba(0, 0, 0, 0.15),
    0 2px 4px rgba(0, 0, 0, 0.1);
}

.yellow {
  background:
    radial-gradient(
      ellipse at 40% 25%,
      rgba(255, 255, 255, 0.35),
      transparent 50%
    ),
    linear-gradient(135deg, #f59e0b 35%, #d97706 65%);
  box-shadow:
    inset 0 -3px 6px rgba(0, 0, 0, 0.15),
    0 2px 4px rgba(0, 0, 0, 0.1);
}

.pink {
  background:
    radial-gradient(
      ellipse at 40% 25%,
      rgba(255, 255, 255, 0.35),
      transparent 50%
    ),
    linear-gradient(135deg, #ec4899 35%, #db2777 65%);
  box-shadow:
    inset 0 -3px 6px rgba(0, 0, 0, 0.15),
    0 2px 4px rgba(0, 0, 0, 0.1);
}

.related-card .mini-btn .mc {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 44px;
  border-radius: 50% 50% 46% 46% / 72% 72% 28% 28%;
  z-index: 3;
}

.related-card .mini-btn .mb {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  border-radius: 5px / 3px;
  background: linear-gradient(180deg, #ddd, #bbb);
  z-index: 2;
}

.related-card .mini-btn .mp {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 11px;
  border-radius: 4px / 3px;
  background: linear-gradient(180deg, #3a3a3a, #1e1e1e);
  z-index: 1;
}

.lip {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 16px;
  border-radius: 50%;
  z-index: 3;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.1));
  pointer-events: none;
  transition: all 0.12s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.related-card .rname {
  font-size: 14px;
  color: var(--text);
  text-align: center;
  max-width: 95px;
  overflow: hidden;
  text-decoration: none;
  line-height: 1.2;
  margin: 8px auto 34px;
  display: block;
}

.related-card .ricons {
  display: flex;
  gap: 10px;
  position: absolute;
  bottom: 4px;
}

.related-card .ricons .rht {
  fill: #e94560;
  stroke: none;
}

.related-card .ricons svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: var(--text3);
  stroke-width: 2;
  cursor: pointer;
  transition: stroke 0.15s;
}

.loader-large {
  width: 120px;
  height: 120px;
  z-index: 3;
}

.text-main {
  color: var(--accent);
}

.h1 {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.h2 {
  font-size: 18px;
  color: var(--text2);
  margin-bottom: 10px;
}

.sh h2 {
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.sh .sa {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background-color: var(--accent);
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 5px;
  margin-top: 20px;
  border: none;
}

.logo {
  font-weight: 900;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.ricons svg:nth-child(3) {
  fill: none !important;
  stroke: #4fc3f7 !important;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bg-accent {
  background-color: var(--accent);
}

.bg-accent:disabled {
  opacity: 0.5;
  background-color: var(--accent);
}

.bg-accent:hover {
  background-color: var(--accent);
  opacity: 0.9;
}
/* From Uiverse.io by RiccardoRapelli */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin-left: 12px;
}

.switch #themeSwitch {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2196f3;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  z-index: 0;
  overflow: hidden;
}

.sun-moon {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: yellow;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

#themeSwitch:checked + .slider {
  background-color: black;
}

#themeSwitch:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

#themeSwitch:checked + .slider .sun-moon {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
  background-color: white;
  -webkit-animation: rotate-center 0.6s ease-in-out both;
  animation: rotate-center 0.6s ease-in-out both;
}

.moon-dot {
  opacity: 0;
  transition: 0.4s;
  fill: gray;
}

#themeSwitch:checked + .slider .sun-moon .moon-dot {
  opacity: 1;
}

.slider.round {
  border-radius: 34px;
}

.slider.round .sun-moon {
  border-radius: 50%;
}

#moon-dot-1 {
  left: 10px;
  top: 3px;
  position: absolute;
  width: 6px;
  height: 6px;
  z-index: 4;
}

#moon-dot-2 {
  left: 2px;
  top: 10px;
  position: absolute;
  width: 10px;
  height: 10px;
  z-index: 4;
}

#moon-dot-3 {
  left: 16px;
  top: 18px;
  position: absolute;
  width: 3px;
  height: 3px;
  z-index: 4;
}

#light-ray-1 {
  left: -8px;
  top: -8px;
  position: absolute;
  width: 43px;
  height: 43px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

#light-ray-2 {
  left: -50%;
  top: -50%;
  position: absolute;
  width: 55px;
  height: 55px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

#light-ray-3 {
  left: -18px;
  top: -18px;
  position: absolute;
  width: 60px;
  height: 60px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

.cloud-light {
  position: absolute;
  fill: #eee;
  animation-name: cloud-move;
  animation-duration: 6s;
  animation-iteration-count: infinite;
}

.cloud-dark {
  position: absolute;
  fill: #ccc;
  animation-name: cloud-move;
  animation-duration: 6s;
  animation-iteration-count: infinite;
  animation-delay: 1s;
}

#cloud-1 {
  left: 30px;
  top: 15px;
  width: 40px;
}

#cloud-2 {
  left: 44px;
  top: 10px;
  width: 20px;
}

#cloud-3 {
  left: 18px;
  top: 24px;
  width: 30px;
}

#cloud-4 {
  left: 36px;
  top: 18px;
  width: 40px;
}

#cloud-5 {
  left: 48px;
  top: 14px;
  width: 20px;
}

#cloud-6 {
  left: 22px;
  top: 26px;
  width: 30px;
}

@keyframes cloud-move {
  0% {
    transform: translateX(0px);
  }

  40% {
    transform: translateX(4px);
  }

  80% {
    transform: translateX(-4px);
  }

  100% {
    transform: translateX(0px);
  }
}

.stars {
  transform: translateY(-32px);
  opacity: 0;
  transition: 0.4s;
}

.star {
  fill: white;
  position: absolute;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  animation-name: star-twinkle;
  animation-duration: 2s;
  animation-iteration-count: infinite;
}

#themeSwitch:checked + .slider .stars {
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
  opacity: 1;
}

#star-1 {
  width: 20px;
  top: 2px;
  left: 3px;
  animation-delay: 0.3s;
}

#star-2 {
  width: 6px;
  top: 16px;
  left: 3px;
}

#star-3 {
  width: 12px;
  top: 20px;
  left: 10px;
  animation-delay: 0.6s;
}

#star-4 {
  width: 18px;
  top: 0px;
  left: 18px;
  animation-delay: 1.3s;
}

@keyframes star-twinkle {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.2);
  }

  80% {
    transform: scale(0.8);
  }

  100% {
    transform: scale(1);
  }
}

.color-plate {
  display: flex;
  width: fit-content;
  margin: auto;
  gap: 10px;
  justify-content: center;
  border-radius: 0px 0px 12px 12px;
  background-color: var(--bg-dark);
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border: 0px 1px 1px 1px solid var(--border);
  overflow: auto;
}

@media screen and (max-width: 768px) {
  .color-plate {
    display: none;
  }
}

.color-plate__item {
  width: 60px;
  height: 30px;
  border-radius: 18px;
  cursor: pointer;
  background-color: var(--bg);
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: all 0.05s ease-in-out;
}

.color-plate__item:hover {
  scale: 1.1;
}

.color-plate__item.active {
  border-color: var(--text);
  scale: 1.1;
}

.upload-btn {
  background-color: var(--accent);
  color: white;
}

.upload-btn:hover {
  background-color: var(--accent);
  color: white;
  opacity: 0.9;
}

/* ═══ CATEGORY PICKER ═══ */
.cat-section {
  padding: 1rem 1rem 0.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px 10px;
  border-radius: 16px;
  background: var(--bg-dark);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: var(--cat-color, var(--kids-blue));
  opacity: 0;
  transition: opacity 0.2s;
}
.cat-card:hover::before {
  opacity: 0.08;
}
.cat-card:hover {
  border-color: var(--cat-color, var(--kids-blue));
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.cat-card.active {
  border-color: var(--cat-color, var(--kids-blue));
  background: color-mix(
    in srgb,
    var(--cat-color, var(--kids-blue)) 8%,
    var(--bg-dark)
  );
}
.cat-card .cat-emoji {
  font-size: 4rem;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}
.cat-card .cat-name {
  font-size: 1rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
}
.cat-card .cat-count {
  font-size: 0.8rem;
  color: var(--text-soft);
  position: relative;
  z-index: 1;
}

/* category colors */
.cat-animals {
  --cat-color: #fb923c;
}
.cat-alpha {
  --cat-color: #4ecdc4;
}
.cat-numbers {
  --cat-color: #a78bfa;
}
.cat-instruments {
  --cat-color: #f87171;
}
.cat-transport {
  --cat-color: #38bdf8;
}
.cat-fun {
  --cat-color: #34d399;
}
.cat-nature {
  --cat-color: #22c55e;
}
.cat-body {
  --cat-color: #ff6b9d;
}

/* ═══ SOUND CARDS GRID ═══ */
.sounds-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem 1rem 2rem;
}
.sounds-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.sounds-header h2 {
  font-size: 1.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  margin: 40px 0px;
  gap: 6px;
}
.filter-pill {
  font-size: 0.58rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  background: #f0f0f4;
  color: var(--text-soft);
  border: none;
  cursor: pointer;
}
.filter-pill.active {
  background: var(--kids-blue);
  color: #fff;
}

.kids-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
@media (max-width: 480px) {
  .kids-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
}

.kids-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 6px 10px;
  border-radius: 16px;
  background: var(--bg-dark);
  cursor: pointer;
  transition: all 0.18s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 2px solid transparent;
  position: relative;
}
.kids-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: var(--border);
}
.kids-card:active {
  transform: scale(0.95);
}
.kids-card.playing {
  border-color: var(--kids-blue);
  background: color-mix(in srgb, var(--kids-blue) 6%, white);
}
.kids-card.playing .card-emoji {
  animation: bounce 0.4s ease;
}
@keyframes bounce {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.25);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

.card-emoji {
  font-size: 3.4rem;
  margin-bottom: 4px;
  line-height: 1;
  transition: transform 0.15s;
}
.card-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.2;
}
.card-sub {
  font-size: 0.7rem;
  color: var(--text-soft);
  margin-top: 1px;
}

/* Alphabet cards — special large letter display */
.kids-card.alpha-card .card-emoji {
  font-size: 2.4rem;
  font-weight: 700;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 6px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
/* rotating letter colors */
.lc-1 {
  background: linear-gradient(135deg, #ff6b9d, #ff4081);
}
.lc-2 {
  background: linear-gradient(135deg, #4ecdc4, #26a69a);
}
.lc-3 {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
}
.lc-4 {
  background: linear-gradient(135deg, #fb923c, #ea580c);
}
.lc-5 {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
}
.lc-6 {
  background: linear-gradient(135deg, #34d399, #059669);
}
.lc-7 {
  background: linear-gradient(135deg, #f87171, #dc2626);
}
.lc-8 {
  background: linear-gradient(135deg, #fbbf24, #d97706);
}

/* Number cards — circular number */
.kids-card.num-card .card-emoji {
  font-size: 2.4rem;
  font-weight: 700;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 6px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* ═══ FAQ ═══ */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
}
.faq-section h2 {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
}
.faq-item {
  background: var(--bg-dark);
  border-radius: 12px;
  padding: 22px 16px;
  margin-bottom: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border);
  cursor: pointer;
}
.faq-item summary {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--text-soft);
  font-weight: 300;
}
.faq-item[open] summary::after {
  content: "-";
}
.faq-item p {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  text-align: left;
}

#pwMobiLbAtf {
  margin-bottom: 40px;
}

.leaderboard-container {
  max-width: 600px;
  min-width: 320px;
  margin: 0 auto;
}

.da {
  border-radius: 0px 0px 18px 18px;
  padding: 18px;
  background: linear-gradient(135deg, var(--accent), #f093fb);
  position: relative;
  overflow: hidden;
}

.da-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  top: -40px;
  right: -40px;
}

.da-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.da-body {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.da-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 700;
  font-family: "DM Mono", monospace;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.da-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.da-fire {
  font-size: 14px;
}

.da-av {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.da-info {
  flex: 1;
  min-width: 0;
}

.da-name {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.da-track {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.da-plays {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  font-family: "DM Mono", monospace;
  line-height: 1;
  text-align: right;
  flex-shrink: 0;
}

.da-plabel {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.6);
  text-align: right;
  font-family: "DM Mono", monospace;
}

.leaderboard-page-container {
  max-width: 1100px;
  margin: 50px auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-table thead {
  background: var(--bg-dark);
}

.leaderboard-table th {
  padding: 16px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}

.leaderboard-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  text-align: left;
  color: var(--text);
}

.leaderboard-table tbody,
.leaderboard-table tr {
  border: none;
}

.leaderboard-table tbody tr:nth-child(even) {
  background: var(--table-odd);
}

.leaderboard-table tbody tr:nth-child(odd) {
  background: var(--table-evn);
}

.leaderboard-table tbody tr:hover {
  opacity: 0.9;
}

@media (max-width: 576px) {
  .leaderboard-table th:nth-child(4),
  .leaderboard-table td:nth-child(4) {
    display: none; 
  }

  .leaderboard-table th,
  .leaderboard-table td {
    padding: 10px 8px;
    font-size: 13px;
  }
}
.chat-page {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 500px;
  padding: 0;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.3px;
}
.brand-name span {
  color: var(--accent);
}

/* ── Empty state ── */
.empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
}

.empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

.empty-sub {
  font-size: 14px;
  color: var(--text2);
  text-align: center;
  max-width: 340px;
  line-height: 1.6;
}

.suggestion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  max-width: 480px;
}

.sug-card {
  background: transparent;
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
  transition:
    border-color 0.15s,
    background 0.15s;
}

.sug-card:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.sug-card .sug-icon {
  font-size: 3rem;
  margin-bottom: 6px;
  display: block;
}

.sug-card .sug-text {
  font-weight: 500;
  color: var(--text);
}

.sug-card .sug-sub {
  font-size: 11.5px;
  color: var(--text2);
  margin-top: 2px;
}

/* ── Messages area ── */
.messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 1.5rem 2rem;
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  scroll-behavior: smooth;
}

.messages-area.visible {
  display: flex;
}

/* scrollbar */
.messages-area::-webkit-scrollbar {
  width: 4px;
}
.messages-area::-webkit-scrollbar-track {
  background: transparent;
}
.messages-area::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* ── Message rows ── */
.msg-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  animation: msgIn 0.25s ease forwards;
}

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

.msg-row.user {
  flex-direction: row-reverse;
  align-items: flex-end;
}

.msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

.msg-avatar.ai-av {
  background: var(--accent);
  color: var(--text);
}

.msg-avatar.user-av {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 0.5px solid var(--border);
  color: var(--accent);
}

.msg-bubble {
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.7;
}

/* User bubble — right, accent-tinted */
.msg-row.user .msg-bubble {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* AI bubble — left, card style */
.msg-row.ai .msg-bubble {
  background: transparent;
  border: 0.5px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

/* ── Thinking indicator ── */
.thinking-bubble {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0.5px solid var(--border);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  padding: 11px 15px;
  max-width: 72%;
}

.dots {
  display: flex;
  gap: 5px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: bounce 1.1s ease-in-out infinite;
}
.dot:nth-child(2) {
  animation-delay: 0.18s;
}
.dot:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.thinking-label {
  font-size: 12.5px;
  color: var(--text2);
}

/* ── Sources & actions inside AI bubble ── */
.bubble-sources {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 0.5px solid var(--border);
}
.bubble-sources.visible {
  display: flex;
}

.src-chip {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 5px;
  border: 0.5px solid var(--border);
  color: var(--text2);
}

.bubble-actions {
  display: none;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.bubble-actions.visible {
  display: flex;
}

/* ── Follow-ups ── */
.follow-up-row {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding-left: 40px;
}
.follow-up-row.visible {
  display: flex;
}

.fu-label {
  font-size: 11.5px;
  color: var(--text2);
}

.fu-btn {
  text-align: left;
  background: transparent;
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition:
    border-color 0.15s,
    background 0.15s;
  width: fit-content;
  max-width: 100%;
}
.fu-btn:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}
.fu-arrow {
  color: var(--text2);
  font-size: 14px;
  margin-left: auto;
}

/* cursor blink */
.cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--text);
  margin-left: 1px;
  vertical-align: middle;
  animation: blink 0.75s step-end infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* ── Bottom input bar ── */
.input-bar {
  flex-shrink: 0;
  padding: 0.85rem 1.5rem 1.2rem;
  border-top: 0.5px solid var(--border);
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 8px 10px 8px 16px;
  transition: border-color 0.2s;
}

.input-wrap:focus-within {
  border-color: var(--accent);
}

.chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  font-size: 14.5px;
  color: var(--text);
  font-family: inherit;
  line-height: 1.5;
  max-height: 140px;
  overflow-y: auto;
}

.chat-input::placeholder {
  color: var(--text2);
}

.chat-input::-webkit-scrollbar {
  width: 3px;
}
.chat-input::-webkit-scrollbar-thumb {
  background: var(--border);
}

.send-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.send-btn:hover {
  opacity: 0.88;
}
.send-btn:active {
  transform: scale(0.92);
}
.send-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.input-hint {
  text-align: center;
  font-size: 11px;
  color: var(--text2);
  margin-top: 8px;
}

@media (max-width: 600px) {
  .suggestion-grid {
    grid-template-columns: 1fr;
  }
  .msg-bubble {
    max-width: 85%;
  }
  .chat-page {
    height: auto;
  }
  .messages-area {
  padding: 1rem 0.5rem;
}
}

.filter-wrap {
  display: flex;
  justify-content: center;
      align-items: center;
    align-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding: 1rem 0;
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 0.5px solid var(--color-border-secondary);
  background: var(--bg-dark);
  color: #666;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
}
.filter-btn:hover {
  background: #f5f5f5;
  color: #111;
}
.filter-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.filter-btn .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}
.filter-btn.active .dot {
  opacity: 1;
  background: #fff;
}

.badge{
  color: white;
  padding: 4px 8px;
  border-radius:9999px;
  background-color: var(--accent);
  margin-left:8px;
}

.mini-btn,
.ricons svg,
.sa,
.btn,
button,
a {
    touch-action: manipulation;
}