body {
  background: linear-gradient(180deg, #111317 0%, #0c0d11 100%);
  font-family: "Fjord One", sans-serif;
  color: #e0e0e0;
  /* font-family: "Arial", sans-serif; */
  /* padding-top: 80px;  */
  text-align: center;
  margin: 0;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 94, 58, 0.08),
    rgba(255, 140, 66, 0.05),
    transparent 50%
  );
  mix-blend-mode: screen; /* overlays nicely on dark */
  z-index: 0;
  pointer-events: none;
}
a {
  color: inherit;
  text-decoration: none;
}
.text-muted {
  color: #b7b7b7 !important;
}

/* small UX nudge so highlights look clickable */
.hl-btn {
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
}
.hl-btn:disabled {
  opacity: 0.7;
}
.highlight-circle img {
  display: block;
}
/* FAQ accordion */
.faq .faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0px 0;
}
.faq .faq-item h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 1.05rem;
  margin: 0;
  color: #ffffff;
}
.faq .faq-item h3 span.arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.faq .faq-item.open h3 span.arrow {
  transform: rotate(180deg);
}
/* .faq .faq-item p { display:none; margin:10px 0 6px; color:#bbb; } */
/* .faq .faq-item.open p { display:block; } */
/* Retry/card helpers */
.retry-card {
  padding: 16px;
  text-align: center;
}

/* Generic media shell */
.media-shell {
  position: relative;
  background: #222;
  overflow: hidden;
}
.media-shell.square {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
}
.media-shell.circle {
  aspect-ratio: 1 / 1;
  border-radius: 999px;
}

.media-shell > img,
.media-shell > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-shell.loading > img,
.media-shell.loading > video {
  opacity: 0; /* keep layout but hide media until ready */
}

.media-shell .media-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-shell:not(.loading) .media-spinner {
  display: none;
}

/* Header styling */
header {
  /* position: fixed; */
  top: 0;
  left: 0;
  right: 0;
  /* background-color: #1c2027; */
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 4000;
  /* border-bottom: 1px solid #444; */
}
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}
.logo {
  display: flex;
  align-items: center;
  gap: 2px;
  /* filter: drop-shadow(0 0 20px rgba(255, 81, 0, 0.4)); */
}
.logo-text {
  background-image: linear-gradient(135deg, #ffb937, #ff7b3a, #af4261);
  /* background-image: linear-gradient(135deg, #FFB937, #FF7B3A, #AF4261); */
  background-size: 100%;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
  font-size: 1.2rem;
  font-weight: 600;
  font-family: var(--bs-font-sans-serif);
  text-transform: uppercase;
}
/* Desktop nav */
.header-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

/* Make the dropdown sit in-line like the other links */
.header-nav .dropdown.nav-howto {
  display: inline-block; /* prevents full-width/line-break behavior */
  position: relative;
}

/* Make the toggle look EXACTLY like your links */
.header-nav .dropdown.nav-howto > .dropdown-toggle {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: #b7b7b7;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s ease;
  line-height: 1; /* matches link line-height feel */
}

/* Same underline hover effect as links */
.header-nav .dropdown.nav-howto > .dropdown-toggle::before {
  /* optional: keeps spacing consistent without shifting layout */
  content: "";
}
.header-nav .dropdown.nav-howto > .dropdown-toggle::after {
  /* Replace Bootstrap caret with a tiny chevron, keep underline effect separate */
  margin-left: 6px;
  font-size: 0.8em;
  vertical-align: baseline;
  border: none;
}

/* Hover state to match links */
.header-nav .dropdown.nav-howto > .dropdown-toggle:hover {
  color: #fff;
}

.header-nav .dropdown.nav-howto > .dropdown-toggle::after,
.header-nav .dropdown.nav-howto > .dropdown-toggle::before {
  pointer-events: none;
}

/* This recreates the underline bar like .header-nav a::after */
.header-nav .dropdown.nav-howto > .dropdown-toggle::marker {
  content: "";
} /* silence browsers */
.header-nav .dropdown.nav-howto > .dropdown-toggle {
  --_underline-w: 0;
}
.header-nav .dropdown.nav-howto > .dropdown-toggle:hover {
  --_underline-w: 100%;
}
.header-nav .dropdown.nav-howto > .dropdown-toggle::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: var(--_underline-w);
  height: 2px;
  background: #ff7b3a;
  transition: width 0.3s ease;
}

/* Dark dropdown menu to match your theme */
.header-nav .dropdown-menu {
  background: #1c2027;
  border: 1px solid #2a2f36;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  margin-top: 8px;
}
.header-nav .dropdown-item {
  color: #e0e0e0;
}
.header-nav .dropdown-item:hover,
.header-nav .dropdown-item:focus {
  background: #2a2f36;
  color: #fff;
}

.header-nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: #b7b7b7;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.header-nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff7b3a;
  transition: width 0.3s ease;
}
.header-nav a:hover {
  color: #fff;
}
.header-nav a:hover::after {
  width: 100%;
}

/* Main container */
.main-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Hero Section */
.hero {
  margin: 60px 0 40px;
  min-height: 120px; /* adjust if yours is taller */
}

@media (min-width: 768px) {
  .hero {
    min-height: 80px;
  }
}

.hero h1 {
  font-size: 32px;
  /* color: rgba(136, 85, 220, 0.969); */
  margin-bottom: 10px;
  background-color: #f3ec78;
  background-image: linear-gradient(45deg, #ffb937, #ff7b3a, #af4261);
  background-size: 100%;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
}
.hero p {
  font-size: 18px;
  color: #ccc;
}

/* Search Bar Styling */
/* Search Bar Styling */
.search-group {
  max-width: 550px; /* bigger overall width */
  min-height: 54px;
  margin: 10px auto;
  display: flex;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); /* depth */
  border-radius: 10px; /* rounder edges */
  overflow: hidden; /* keep children inside rounded corners */
}

.search-group .form-control {
  background-color: #1a1c20;
  color: #fff;
  border: none;
  padding: 14px 18px; /* bigger input */
  flex: 1;
  font-size: 1.05rem;
}

.search-group .form-control::placeholder {
  color: #888;
}

.search-group .btn-search {
  background: linear-gradient(135deg, #ffb937, #ff7b3a, #af4261);
  border: none;
  padding: 0 22px; /* wider button */
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease;
  cursor: pointer;
}

.search-group .btn-search:hover {
  background: linear-gradient(135deg, #ffb937, #ff7b3a, #af4261);
  box-shadow: 0 0 14px rgba(255, 123, 58, 0.5);
  transform: translateY(-1px); /* subtle lift */
}

.search-group .btn-search svg {
  width: 22px; /* slightly larger icon */
  height: 22px;
  transition:
    transform 0.3s ease,
    fill 0.3s ease;
  fill: #fff;
}

.search-group .btn-search:hover svg {
  fill: #fff176;
  transform: scale(1.15) rotate(8deg);
}

/* --- trending ticker under search --- */

/* matches your header-nav look */
.trending-label {
  margin-right: 0.5rem;
  font-weight: 600;
  color: #b7b7b7;
}

.trending-under-search {
  max-width: 550px;
  min-height: 32px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.5rem;
}

.ticker-viewport {
  display: inline-block;
  vertical-align: middle;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  /* optional edge fade */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.ticker-track {
  display: inline-flex;
  gap: 0.35rem;
  white-space: nowrap;
  will-change: transform;
  animation: ticker var(--ticker-duration, 40s) linear infinite;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  } /* because we duplicated the content once */
}

/* pause on hover for usability */
.trending-ticker:hover .ticker-track {
  animation-play-state: paused;
}

/* inline separators */
.trend-sep {
  margin: 0 0.35rem;
  color: #b7b7b7;
  opacity: 0.7;
}
.sep-gap {
  margin: 0 0.6rem;
}

/* make links look like .header-nav a */
.trend-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: #b7b7b7;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.trend-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff7b3a;
  transition: width 0.3s ease;
}
.trend-link:hover,
.trend-link:focus {
  color: #fff;
}
.trend-link:hover::after,
.trend-link:focus::after {
  width: 100%;
}

/* motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
}

/* only on user page */
/* .page-user #profile-container {
  min-height: 180px;
}
@media (min-width: 992px) {
  .page-user #profile-container {
    min-height: 80px;
  }
} */

/* index default: no profile yet */
body:not(.has-profile) #profile-container {
  min-height: 0;
}

/* Profile Section */
#profile-container {
  margin-top: 20px;
  scroll-margin-top: 50px;
}
#profile-pic-wrapper {
  position: relative;
  display: inline-block;
}
#profile-pic-wrapper img#profile-pic {
  width: 110px;
  height: 110px;
  object-fit: cover;
}
#profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(45deg, #ffb937, #ff7b3a, #af4261);
  display: none;
  padding: 2px;
}
#download-profile {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  padding: 3px;
  display: none;
  transition: transform 0.2s ease;
}
#download-profile:hover {
  transform: scale(1.2);
}
#profile-info {
  margin-top: 10px;
}
#profile-info h3 {
  margin: 0;
  font-size: 20px;
  color: #fff;
}
#profile-info p {
  margin: 0;
  font-size: 14px;
  color: #bbb;
}
#user-stats {
  margin-top: 5px;
  font-size: 16px;
  text-align: center;
}

.card-footer {
  /* background-color: #1c2027; */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  border-top: 1px solid #333;
}

.card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 16px;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 185, 55, 0.25);
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 22px 0 rgba(255, 185, 55, 0.1),
    0 0 30px 0 rgba(175, 66, 97, 0.08);
}

.download-btn-big {
  display: inline-block;
  margin-bottom: 5px;
  transition: all 0.3s ease;
  padding: 8px 16px;
  background: linear-gradient(45deg, #ffb937, #ff7b3a, #af4261);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
}
.download-btn-big:hover {
  filter: brightness(1.1) saturate(1.2);
  box-shadow: 0 0 15px rgba(255, 123, 58, 0.6);
}
.timestamp-text {
  display: block;
  margin-top: 3px;
  color: #ccc;
}
.post-bio {
  margin-bottom: 5px;
  font-size: 14px;
  color: #bbb;
}

/* Spinner Styling */
.spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.4em;
}
.text-light-gray {
  color: #ccc !important;
}
.spinner-container {
  text-align: center;
}
.spinner-container p {
  margin-top: 5px;
  font-size: 14px;
  color: #bbb;
}

/* Nav Tabs Styling */
.nav-tabs {
  display: flex;
  justify-content: space-around;
  list-style: none;
  margin: 40px 0;
  padding: 0;
  border-top: 1px solid #fff;
  position: relative;
  border-bottom: none;
}
.nav-tabs .nav-link {
  background: transparent;
  border: none;
  color: #b7b7b7;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 16px 12px 0;
  text-align: center;
  text-transform: uppercase;
  flex: 1;
  position: relative;
}
.nav-tabs .nav-link:hover {
  color: rgb(220 158 85 / 97%);
}
.nav-tabs .nav-link.active {
  background-color: transparent !important;
  /* color: rgba(136, 85, 220, 0.969); */
  background-color: #f3ec78;
  background-image: linear-gradient(45deg, #ffb937, #ff7b3a, #af4261);
  background-size: 100%;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
  margin-top: -1px;
}
.nav-tabs .nav-link.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #d96f0d;
}

/* Highlights Section */
#highlights-wrapper {
  position: relative;
  margin-top: 20px;
}
#highlights-container {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 5px 0px;
  gap: 10px;
  scroll-behavior: smooth;
}
#highlights-container::-webkit-scrollbar {
  display: none;
}
#highlights-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
#highlights-prev,
#highlights-next {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
}
#highlights-prev {
  left: 5px;
}
#highlights-next {
  right: 5px;
}
.highlight-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 10px;
}
.highlight-circle img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgb(220 158 85 / 97%);
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}
.highlight-circle img:hover {
  transform: scale(1.1);
}
.highlight-circle p {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

/* Empty state for Highlights */
#highlights-wrapper.is-empty #highlights-prev,
#highlights-wrapper.is-empty #highlights-next {
  display: none !important;
}

#highlights-wrapper.is-empty #highlights-container {
  display: flex; /* ensure centering works */
  justify-content: center;
  align-items: center;
  width: 100%;
  /* padding: 8px 0; */
}

#highlights-wrapper.is-empty #highlights-container p {
  margin: 0;
  text-align: center;
  width: 100%;
}

/* Posts "Load More" Button */
#loadMorePosts {
  margin: 20px auto;
  padding: 10px 20px;
  background: linear-gradient(45deg, #ffb937, #ff7b3a, #af4261);
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: none;
  transition: all 0.3s ease;
}
#loadMorePosts:hover {
  filter: brightness(1.1) saturate(1.2);
  box-shadow: 0 0 15px rgba(255, 123, 58, 0.6);
}

/* Reels "Load More" Button */
#loadMoreReels {
  margin: 20px auto;
  padding: 10px 20px;
  background: linear-gradient(45deg, #ffb937, #ff7b3a, #af4261);
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: none;
  transition: all 0.3s ease;
}
#loadMoreReels:hover {
  filter: brightness(1.1) saturate(1.2);
  box-shadow: 0 0 15px rgba(255, 123, 58, 0.6);
}

/* Highlight stories "Load More" Button */
#loadMoreHighlightStories {
  margin: 20px auto;
  padding: 10px 20px;
  background: linear-gradient(45deg, #ffb937, #ff7b3a, #af4261);
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: none;
  transition: all 0.3s ease;
}
#loadMoreHighlightStories:hover {
  filter: brightness(1.1) saturate(1.2);
  box-shadow: 0 0 15px rgba(255, 123, 58, 0.6);
}

.step-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  width: 100%;
}

/* inline carousel controls */
.card.carousel {
  position: relative;
}
.card .carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}
.card .carousel-btn {
  background: rgba(0, 0, 0, 0.45);
  border: 0;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

/* Minimal carousel UI */
.icg-carousel {
  position: relative;
  touch-action: pan-y; /* allow vertical scroll; we’ll handle horizontal */
  -webkit-user-select: none;
  user-select: none;
}
.icg-carousel .icg-viewport {
  position: relative;
  overflow: hidden;
}

/* make arrows visible and on top */
.icg-carousel .icg-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 56px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: 0;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.icg-carousel .icg-nav.prev {
  left: 8px;
}
.icg-carousel .icg-nav.next {
  right: 8px;
}
.icg-carousel .icg-nav:focus {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.icg-carousel .icg-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  text-align: center;
  z-index: 10;
}
.icg-carousel .icg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin: 0 3px;
  border: none;
  background: rgba(255, 255, 255, 0.4);
}
.icg-carousel .icg-dot.active {
  background: #fff;
}

.icg-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  overflow-x: auto; /* allow horizontal scroll */
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none; /* Firefox: hide scrollbar */
  -webkit-overflow-scrolling: touch;
}
.icg-dots::-webkit-scrollbar {
  display: none;
} /* WebKit: hide scrollbar */

/* Base dot */
.icg-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

/* Compact when many slides */
.icg-dots[data-count="11"],
.icg-dots[data-count="12"],
.icg-dots[data-count="13"],
.icg-dots[data-count="14"],
.icg-dots[data-count="15"],
.icg-dots[data-count="16"],
.icg-dots[data-count="17"],
.icg-dots[data-count="18"],
.icg-dots[data-count="19"],
.icg-dots[data-count="20"] .icg-dot,
.icg-dots[data-count]:not([data-count=""]):has(.icg-dot:nth-child(n + 11))
  .icg-dot {
  width: 7px;
  height: 7px;
  gap: 4px;
}

/* Super compact 21+ */
.icg-dots[data-count]:has(.icg-dot:nth-child(n + 21)) .icg-dot {
  width: 5px;
  height: 5px;
  gap: 3px;
}

/* Optional: subtle gradient edge masks to hint scrollability */
.icg-dots {
  mask-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0,
    #000 16px,
    #000 calc(100% - 16px),
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0,
    #000 16px,
    #000 calc(100% - 16px),
    rgba(0, 0, 0, 0) 100%
  );
}

/* Ensure media lays out cleanly */
.icg-carousel img,
.icg-carousel video {
  display: block;
  width: 100%;
  height: auto;
}

/* Make sure arrows are above media and actually render */
.icg-carousel {
  position: relative;
}

.icg-carousel .icg-nav {
  z-index: 9999;
  display: inline-flex !important;
}

.icg-carousel .icg-slide {
  display: none;
}
.icg-carousel .icg-slide.current {
  display: block;
}
.icg-carousel .icg-slide img,
.icg-carousel .icg-slide video {
  display: block;
  width: 100%;
  height: auto;
}

/* How It Works Section */

.step {
  position: relative;
  /* background: #1c2027; */
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 12px;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.3s ease;
}

.step::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: linear-gradient(45deg, #ffb937, #ff7b3a, #af4261);
  filter: blur(35px);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  border-radius: 16px;
}

.step:hover::before {
  opacity: 0.6;
}

.step:hover {
  transform: translateY(-6px);
}

.step .icon img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  /* border-radius: 50%; */
  /* background: rgba(136, 85, 220, 0.1); */
  padding: 10px;
  margin-bottom: 10px;
}
.step h3 {
  font-size: 18px;
  margin-bottom: 10px;
  /* color: rgba(136, 85, 220, 0.969); */
  background-color: #f3ec78;
  background-image: linear-gradient(45deg, #ffb937, #ff7b3a, #af4261);
  background-size: 100%;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
}
.step p {
  font-size: 14px;
  color: #b7b7b7;
}

.step:hover h3,
.step:hover p {
  /* Force the text to solid white when hovered */
  color: #ffffff !important;
  /* Optional: keep the glow‐pulse shadow for depth */
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.2),
    0 0 16px rgba(255, 123, 58, 0.3),
    0 0 24px rgba(175, 66, 97, 0.2);
  transition: text-shadow 0.3s ease;
  animation: glowPulse 2s infinite ease-in-out;
}

@keyframes glowPulse {
  0% {
    text-shadow:
      0 0 5px rgba(255, 255, 255, 0.1),
      0 0 10px rgba(255, 123, 58, 0.2),
      0 0 15px rgba(175, 66, 97, 0.1);
  }
  50% {
    text-shadow:
      0 0 10px rgba(255, 255, 255, 0.2),
      0 0 20px rgba(255, 123, 58, 0.3),
      0 0 25px rgba(175, 66, 97, 0.2);
  }
  100% {
    text-shadow:
      0 0 5px rgba(255, 255, 255, 0.1),
      0 0 10px rgba(255, 123, 58, 0.2),
      0 0 15px rgba(175, 66, 97, 0.1);
  }
}

/* ------------------------------------------------------------------
   UPDATED: Feature Grid Aesthetic (matches "How It Works" vibe)
   ------------------------------------------------------------------ */

/* Container grid stays the same */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 20px;
}

/* On narrower screens, switch to one column */
@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* Each feature card */
.feature {
  position: relative;
  /* background-color: #1c2027;  */
  background-color: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

/* Create a blurred, gradient “glow” behind each card */
.feature::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: radial-gradient(
    circle at center,
    rgba(255, 185, 55, 0.4),
    rgba(255, 123, 58, 0.2),
    transparent 70%
  );
  filter: blur(45px);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  border-radius: 16px;
}

/* On hover, bring that glow up and lift the card slightly */
.feature:hover::before {
  opacity: 0.6;
}

.feature:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 185, 55, 0.25);
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 22px 0 rgba(255, 185, 55, 0.1),
    0 0 30px 0 rgba(175, 66, 97, 0.08);
}

/* Icon container */
.feature .illustrations {
  text-align: center;
  margin-bottom: 12px;
  position: relative;
  z-index: 1; /* ensure text/icon stay above the blur */
}
.feature .illustrations img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  /* border-radius: 50%; */
  /* background: rgba(136, 85, 220, 0.1); */
  padding: 12px;
  transition: transform 0.3s ease;
}

/* Scale icon slightly on hover */
.feature:hover .illustrations img {
  transform: scale(1.1);
}

/* Headline in gradient text (same as how-it-works) */
.feature h3 {
  font-size: 20px;
  margin-bottom: 8px;
  background: linear-gradient(45deg, #ffb937, #ff7b3a, #af4261);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  z-index: 1;
  position: relative;
  transition: text-shadow 0.3s ease;
}

/* Subtext styling */
.feature p {
  font-size: 15px;
  color: #ccc;
  line-height: 1.5;
  z-index: 1;
  position: relative;
}

/* On hover, give the headline/subtext a slight glow pulsing effect */
.feature:hover h3,
.feature:hover p {
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.1),
    0 0 16px rgba(255, 123, 58, 0.3),
    0 0 24px rgba(175, 66, 97, 0.2);
  animation: glowPulseFeature 2s infinite ease-in-out;
}

@keyframes glowPulseFeature {
  0% {
    text-shadow:
      0 0 4px rgba(255, 255, 255, 0.05),
      0 0 8px rgba(255, 123, 58, 0.15),
      0 0 12px rgba(175, 66, 97, 0.1);
  }
  50% {
    text-shadow:
      0 0 8px rgba(255, 255, 255, 0.2),
      0 0 16px rgba(255, 123, 58, 0.3),
      0 0 24px rgba(175, 66, 97, 0.2);
  }
  100% {
    text-shadow:
      0 0 4px rgba(255, 255, 255, 0.05),
      0 0 8px rgba(255, 123, 58, 0.15),
      0 0 12px rgba(175, 66, 97, 0.1);
  }
}

/* -----------------------------------------------------
   FAQ Section: Modern Card Style with Smooth Transitions
   ----------------------------------------------------- */

/* Container background remains dark, but add padding */
.faq {
  background-color: #1f1f1f;
  padding: 30px 20px;
  border-radius: 12px;
  margin: 40px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* FAQ heading in gradient text (matching other headings) */
.faq h2 {
  background: linear-gradient(45deg, #ffb937, #ff7b3a, #af4261);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: 28px;
  margin-bottom: 20px;
}

/* Each question “card” */
.faq-item {
  /* background-color: #1c2027; Slightly lighter than container */
  background-color: rgba(255, 255, 255, 0.03);
  border-left: 4px solid transparent; /* Will become gradient on hover/active */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition:
    background-color 0.3s ease,
    border-left-color 0.3s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Gradient accent on left when hovered or active */
.faq-item:hover,
.faq-item.active {
  background-color: #2a2a2a;
  border-left-color: #ff7b3a; /* solid accent color that matches gradient */
}

/* Question row – flex layout for title + arrow */
.faq-item h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  margin: 0;
  padding: 16px 20px;
  cursor: pointer;
  color: #e0e0e0;
  transition: color 0.3s ease;
}

/* Rotate arrow when active */
.faq-item h3 span {
  display: inline-block;
  transition: transform 0.3s ease;
}
.faq-item.active h3 span {
  transform: rotate(180deg);
}

/* Question text color change on hover/active */
.faq-item:hover h3,
.faq-item.active h3 {
  color: #ffffff;
}

/* Answer panel – initially collapsed with zero height */
.faq-item p {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  margin: 0;
  color: #ccc;
  line-height: 1.6;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
}

/* When active, expand the answer: give it room to grow */
.faq-item.active p {
  max-height: 400px; /* or whatever is tall enough for your content */
  padding: 10px 20px 20px;
}

/* Optional: subtle underline under questions for visual separation */
.faq-item h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* Make sure arrow icon is a bit brighter */
.faq-item h3 span::before {
  content: "▼";
  font-size: 14px;
  color: #b7b7b7;
}
.faq-item.active h3 span::before {
  color: #ffb937;
}

/* --- FAQ FIX: animate the wrapper, not the <p> --- */
.faq .faq-item p {
  /* neutralize any older display:none rules */
  display: block !important;
}

/* collapse/expand the wrapper created by JS */
.faq .faq-item .faq-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 10px; /* keep your horizontal padding */
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
}

.faq .faq-item.active .faq-content {
  max-height: 1000px; /* big enough for long answers */
  padding: 5px 10px 10px; /* your expanded padding */
}

/* speed up the keyframes so it flashes through */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* more pronounced base & highlight */
.skeleton {
  background-color: #cccccc; /* slightly darker grey */
  position: relative;
  overflow: hidden;
}

/* wider, brighter shimmer */
.skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%);
  animation: shimmer 0.8s ease-in-out infinite; /* faster & smoother */
}

/* profile placeholders */
.profile-skeleton {
  text-align: center;
  padding: 2rem 0;
}
.profile-skeleton .skeleton-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1rem;
}
.profile-skeleton .skeleton-line {
  height: 16px;
  margin: 0.5rem auto;
  border-radius: 4px;
}
.profile-skeleton .skeleton-line.short {
  width: 40%;
}
.profile-skeleton .skeleton-line.long {
  width: 60%;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-8px);
  }
  40%,
  80% {
    transform: translateX(8px);
  }
}

.shake {
  animation: shake 0.5s ease-in-out;
}

/* ----------------------------------------------------------------
   “Use Cases” Section – Clean Tile Layout (no cards)
   ---------------------------------------------------------------- */

/* Container background stays the same */
.use-cases {
  /* background-color: #171a20; */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  padding: 40px 20px;
  border-radius: 12px;
  margin-top: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Section title in gradient text */
.use-cases h2 {
  background: linear-gradient(45deg, #ffb937, #ff7b3a, #af4261);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
}

@media (max-width: 992px) {
  .use-cases .row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .use-cases .row {
    grid-template-columns: 1fr;
  }
}

/* Each tile no longer has a box shadow or background */
.use-case-card {
  background: transparent; /* remove card background */
  box-shadow: none; /* remove any previous shadow */
  padding: 0; /* no internal padding */
  position: relative;
  text-align: center;
  transition: transform 0.3s ease;
}

/* On hover, gently lift the entire tile slightly */
.use-case-card:hover {
  transform: translateY(-4px);
}

/* Icon sits at top, no card border */
.use-case-card img {
  display: block;
  width: 200px;
  height: 200px;
  margin: 0 auto 12px;
  transition: transform 0.3s ease;
}

/* Scale icon up slightly on hover */
.use-case-card:hover img {
  transform: scale(1.1);
}

/* Heading underlined on hover */
.use-case-card h3 {
  display: block;
  text-align: center;
  font-size: 20px;
  color: #fff;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}

/* Underline element (pseudo) – hidden by default */
.use-case-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #ff7b3a; /* orange accent */
  transition: width 0.3s ease;
}

/* On hover of the tile, make heading color and underline appear */
.use-case-card:hover h3 {
  color: #ffb937; /* gradient‐adjacent yellow for contrast */
}

.use-case-card:hover h3::after {
  width: 100%;
}

/* Paragraph text */
.use-case-card p {
  color: #ccc;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0 10px;
}

/* -------------------------------------------------------
   “About Us” Section
   ------------------------------------------------------- */
.about-us {
  /* background-color: #171a20; */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  padding: 40px 20px;
  border-radius: 12px;
  margin-top: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.about-us h2 {
  background: linear-gradient(45deg, #ffb937, #ff7b3a, #af4261);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: 28px;
  margin-bottom: 20px;
}
.about-us p {
  color: #ccc;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.related-tools h2 {
  background: linear-gradient(45deg, #ffb937, #ff7b3a, #af4261);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: 28px;
}

.related-tools a {
  position: relative;
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.related-tools a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff7b3a;
  transition: width 0.3s ease;
}
.related-tools a:hover {
  color: #fff;
}
.related-tools a:hover::after {
  width: 100%;
}

/* -------------------------------------------------------
   “Privacy Policy & Terms” Section
   ------------------------------------------------------- */
#privacy-policy,
#terms-of-use {
  margin-top: 60px; /* space above */
  padding-top: 20px; /* space inside */
  border-top: 1px solid #444; /* dark line separator */
}

/* Make EVERY slide render so we can animate; layer them */
.icg-carousel .icg-slide {
  display: block !important; /* override old display:none */
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(0);
  transition:
    transform 0.22s ease,
    opacity 0.22s ease;
  will-change: transform, opacity;
  pointer-events: none; /* don’t intercept clicks when hidden */
}
.icg-carousel .icg-slide.current {
  position: relative; /* lets the parent take this slide’s height */
  opacity: 1;
  pointer-events: auto;
}

/* Direction-aware nudge we toggle from JS */
.icg-slide.enter {
  opacity: 1;
} /* start slightly offset, then settle */
.icg-carousel.dir-next .icg-slide.enter {
  transform: translateX(12px);
}
.icg-carousel.dir-prev .icg-slide.enter {
  transform: translateX(-12px);
}

.icg-carousel.dir-next .icg-slide.exit {
  transform: translateX(-12px);
  opacity: 0;
}
.icg-carousel.dir-prev .icg-slide.exit {
  transform: translateX(12px);
  opacity: 0;
}

/* === media-shell (FINAL) === */
.media-shell {
  position: relative;
  width: 100%;
  aspect-ratio: var(--ar, 1/1); /* square placeholder by default */
  background: #0d0f14; /* subtle, not jet black */
  border-radius: 12px;
  overflow: hidden;
}
.media-shell > .spinner-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
}
.media-shell > .real-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: var(--fit, cover); /* per-tile via --fit */
  object-position: center;
  opacity: 0;
  transition: opacity 0.18s ease-in-out;
  background: transparent; /* avoid black UA fill */
}
.media-shell.loaded > .real-media {
  opacity: 1;
}
.media-shell.loaded > .spinner-center {
  display: none;
}

/* Kill any older overrides that might force the media visible too early */
.media-shell .real-media {
  display: block;
}

/* Profile pic overlay spinner wrapper */
#profile-pic-wrapper {
  position: relative;
  display: inline-block;
}
.pp-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.spinner-border {
  animation: var(--bs-spinner-animation-speed, 0.75s) linear infinite
    spinner-border;
}

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

/* Accessibility: honor reduced motion */
@media (prefers-reduced-motion: reduce) {
  .icg-slide {
    transition: none !important;
  }
}

/* Guarantee helpers win even over older global rules */
.media-shell > img.real-media,
.media-shell > video.real-media {
  object-fit: var(--fit, cover) !important;
  width: 100% !important;
  height: 100% !important;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .faq-item h3 {
    font-size: 16px;
    padding: 12px 16px;
  }
  .faq-item.active p {
    max-height: 300px;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Additional SEO-friendly styling for descriptive sections */
.description,
.how-it-works,
.features,
.faq {
  padding: 20px;
  margin-top: 40px;
  border-radius: 8px;
  /* background-color: #171a20; */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
}
.description h2,
.how-it-works h2,
.features h2,
.faq h2 {
  /* color: rgba(136, 85, 220, 0.969); */
  background-color: #f3ec78;
  background-image: linear-gradient(45deg, #ffb937, #ff7b3a, #af4261);
  background-size: 100%;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
}
.description p,
.how-it-works p,
.features p {
  font-size: 16px;
  line-height: 1.6;
  color: #ccc;
}

/* -------------------------------------------------------
   "BLOG" Section
   ------------------------------------------------------- */
/* ---------- Blog cards (index + carousels) ---------- */

#blog h2 {
  background: linear-gradient(45deg, #ffb937, #ff7b3a, #af4261);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.blog-card {
  background: #171a20; /* matches your .card base */
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  position: relative;
}
.blog-card::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(
    circle at 50% 30%,
    rgba(255, 185, 55, 0.35),
    rgba(255, 123, 58, 0.18),
    transparent 40%
  );
  filter: blur(40px);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 0;
}
.blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 185, 55, 0.25);
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 22px 0 rgba(255, 185, 55, 0.1),
    0 0 30px 0 rgba(175, 66, 97, 0.08);
}
.blog-card:hover::before {
  opacity: 0.6;
}
.blog-card .card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.blog-card .card-body {
  position: relative;
  z-index: 1;
}
.blog-card .card-title {
  font-weight: 700;
}
.blog-card .card-text {
  color: #ccc;
}

/* small meta row if you add dates later */
.blog-meta {
  font-size: 0.85rem;
  color: #b7b7b7;
}

/* ---------- Blog article (detail page) ---------- */
.blog-article {
  max-width: 980px;
}
.blog-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  margin-bottom: 24px;
}
.blog-hero img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
/* Dark top fade behind the title */
.blog-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 55%; /* how tall the fade is */
  background: linear-gradient(
    180deg,
    rgba(15, 17, 21, 0.92) 0%,
    rgba(15, 17, 21, 0.6) 55%,
    rgba(15, 17, 21, 0) 100%
  );
  z-index: 1;
  pointer-events: none;
}
/* Title overlay */
.blog-hero-title {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: clamp(16px, 3vw, 28px);
  z-index: 2; /* above the fade */
}

.blog-hero-title h1 {
  margin: 0;
  line-height: 1.1;
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.grad-text {
  background: linear-gradient(45deg, #ffb937, #ff7b3a, #af4261);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.blog-title {
  margin: 6px 0 10px;
}
.blog-title.grad-text {
  display: inline-block;
}
.blog-body {
  background: #171a20;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.blog-body .lead {
  white-space: pre-wrap;
  line-height: 1.75;
  color: #e0e0e0;
  font-size: 1.06rem;
}
.blog-back {
  background: linear-gradient(45deg, #ffb937, #ff7b3a, #af4261);
  color: #111;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
}
.blog-back:hover {
  filter: brightness(1.05) saturate(1.1);
}

/* Readable blog copy */
/* ---- Blog article: realistic reading rhythm ---- */
.blog-hero {
  margin-bottom: 16px;
} /* was larger */
.blog-body {
  padding: 18px 20px;
} /* slightly tighter */

.blog-body .prose {
  text-align: left;
  /* Wider measure on desktop so lines feel "longer" */
  max-width: 78ch; /* base */
  margin: 0 auto;
  line-height: 1.58; /* was ~1.75 */
  color: #e6e6e6;
  font-size: 1.02rem; /* a touch over 16px */
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: normal;
  overflow-wrap: anywhere; /* avoids odd breaks */
}

/* Make it wider on bigger screens */
@media (min-width: 992px) {
  .blog-body .prose {
    max-width: 88ch;
  }
}
@media (min-width: 1280px) {
  .blog-body .prose {
    max-width: 96ch;
  }
}

/* Paragraphs & headings: less vertical air */
.blog-body .prose p {
  margin: 0 0 0.85rem;
} /* was ~1rem */
.blog-body .prose h1,
.blog-body .prose h2,
.blog-body .prose h3,
.blog-body .prose h4,
.blog-body .prose h5,
.blog-body .prose h6 {
  margin: 0.9rem 0 0.45rem;
  line-height: 1.2;
  font-weight: 800;
}
.blog-body .prose h1 {
  font-size: 1.85rem;
}
.blog-body .prose h2 {
  font-size: 1.45rem;
}
.blog-body .prose h3 {
  font-size: 1.25rem;
}

/* Lists: compact but readable */
.blog-body .prose ul,
.blog-body .prose ol {
  margin: 0.5rem 0 0.6rem 1.2rem; /* tighter block margins */
  padding-left: 0; /* rely on margin */
  list-style-position: outside;
}
.blog-body .prose li {
  margin: 0.22rem 0;
}

/* Inline elements stay subtle */
.blog-body .prose a {
  color: #ffb937;
  text-decoration: underline;
}
.blog-body .prose a:hover {
  filter: brightness(1.06);
}
.blog-body .prose strong {
  font-weight: 750;
}
.blog-body .prose em {
  font-style: italic;
}

/* Code / pre a bit tighter too */
.blog-body .prose code {
  background: #0f1115;
  border: 1px solid #2a2f3a;
  padding: 0.08rem 0.32rem;
  border-radius: 6px;
  font-size: 0.95em;
}
.blog-body .prose pre {
  background: #0f1115;
  border: 1px solid #2a2f3a;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
}

/* Layout wrapper puts buttons OUTSIDE the cards */
.blog-carousel-wrap {
  display: flex;
  align-items: center; /* center buttons vertically vs. card row */
  gap: 14px; /* space between button and carousel */
}

.blog-carousel-wrap .carousel {
  flex: 1; /* carousel takes the width, buttons flank it */
  min-width: 0; /* prevent overflow on small screens */
}

/* Buttons styled like your theme */
.blog-nav {
  background: #171a20;
  border: 1px solid #2a2f3a;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e6e6e6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s,
    color 0.2s;
  cursor: pointer;
}

.blog-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255, 123, 58, 0.25);
  background: linear-gradient(45deg, #ffb937, #ff7b3a, #af4261);
  color: #111;
}

.blog-nav svg {
  width: 20px;
  height: 20px;
}

/* Compact on small screens */
@media (max-width: 768px) {
  .blog-nav {
    width: 38px;
    height: 38px;
  }
}

/* If you previously bumped z-index on Bootstrap controls, not needed anymore */
#blogCarousel .carousel-control-prev,
#blogCarousel .carousel-control-next {
  display: none !important;
}

/* mini external link next to @handle */
.handle-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid #2a2f3a;
  border-radius: 8px;
  background: #171a20;
  color: #e6e6e6;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.handle-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(255, 123, 58, 0.25);
  background: linear-gradient(45deg, #ffb937, #ff7b3a, #af4261);
  color: #111;
}
.handle-link svg {
  width: 14px;
  height: 14px;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  padding: 24px 16px;
  border-top: 1px solid #444;
  background: #0f1115; /* match your page bg */
  color: #e0e0e0;
}

.site-footer .footer-inner {
  max-width: 880px; /* <- controls width so text doesn’t span full screen */
  margin: 0 auto; /* center */
  text-align: center; /* or center if you prefer */
}

.site-footer p {
  margin: 0 0 8px;
}

.site-footer .links {
  margin: 6px 0 10px;
}

.site-footer .links a {
  color: #c4c4c4;
  text-decoration: none;
  margin-right: 12px;
  position: relative;
}

.site-footer .links a:hover {
  color: #fff;
}

.site-footer .legal {
  color: #c4c4c4; /* lighter text for disclaimer */
  line-height: 1.55;
}

/* Optional: slightly tighter on phones */
@media (max-width: 576px) {
  .site-footer .footer-inner {
    max-width: 92%;
  }
}

/* LANGUAGE DROPDOWN MENU */

/* Toggle button: transparent/dark, no white on hover/active */
.lang-toggle {
  background: transparent;
  color: #e0e0e0;
  border: 1px solid #2a2a2a;
  padding: 0.25rem 0.5rem;
}
.lang-toggle:hover,
.lang-toggle:focus,
.lang-toggle:active,
.lang-toggle.show {
  background: transparent; /* stay transparent */
  color: #ffffff;
  border-color: #3a3a3a;
  box-shadow: none;
  outline: none;
}
/* caret inherits currentColor, so it stays light */
.lang-toggle::after {
  opacity: 0.9;
}

/* Menu: match header/body dark, not white */
.lang-menu {
  --bs-dropdown-bg: #121212; /* Bootstrap var override */
  --bs-dropdown-link-hover-bg: #1a1d24;
  --bs-dropdown-link-active-bg: #1a1d24; /* kill white active */
  background-color: #121212;
  border: 1px solid #2a2a2a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  min-width: 9rem;
}

.lang-menu .dropdown-item {
  color: #e0e0e0;
}
.lang-menu .dropdown-item:hover,
.lang-menu .dropdown-item:focus,
.lang-menu .dropdown-item.active,
.lang-menu .dropdown-item:active {
  color: #ffffff;
  background-color: #1a1d24; /* consistent dark active */
}


/* --- Search error box under the input --- */
#search-error {
  position: relative;
  max-width: 550px;
  margin: 10px auto 0;
  padding: 0.75rem 0.95rem;
  border-radius: 10px;
  /* background: rgba(15, 17, 21, 0.96); */
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.60);
}

/* gradient “halo” border, same logic as your ghost buttons */
#search-error::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(45deg, #ffb937, #ff7b3a, #af4261);
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* main row inside the error */
#search-error .msg-no-info-main {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

/* tiny glowing gradient dot */
#search-error .msg-no-info-dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb937, #ff7b3a, #af4261);
  box-shadow: 0 0 12px rgba(255, 123, 58, 0.9);
  margin-top: 4px;
}

/* main error text */
#search-error .msg-no-info-text {
  margin: 0;
  font-size: 0.92rem;
  color: #e5e7eb;
  line-height: 1.45;
}

/* suggestions container under error text */
#search-error .username-suggestions-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(55, 65, 81, 0.7);
}

/* label row: sits above the chips */
.username-suggestions-label-row {
  width: 100%;
}

/* “Did you mean:” styling */
.username-suggestions-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

/* chips row: pills flow below the label, wrapping nicely */
.username-suggestions-chips {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  gap: 0.45rem;
}

/* individual suggestion chip (same as before) */
.username-suggest-chip {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.3rem 0.8rem 0.4rem;
  border-radius: 999px;
  border: 1px solid #595959;
  background: transparent;
  color: #f9fafb;
  cursor: pointer;
  min-width: 0;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.12s ease,
    border-color 0.2s ease;
}

.username-suggest-chip:hover,
.username-suggest-chip:focus {
  outline: none;
  background: linear-gradient(135deg, #ffb937, #ff7b3a, #af4261);
  border-color: transparent;
  box-shadow: 0 0 16px rgba(255, 123, 58, 0.55);
  transform: translateY(-1px);
}

.username-suggest-chip .suggestion-handle {
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.2;
}

.username-suggest-chip .suggestion-full-name {
  font-size: 0.77rem;
  line-height: 1.2;
  opacity: 0.9;
}

/* base style for “info” texts that reuse msg-no-info (e.g. private notice) */
.msg-no-info {
  margin: 0.5rem 0 0;
  padding: 0;
  border: none;
  font-size: 0.9rem;
  color: #9ca3af;
}

/* private notice under profile gets amber tone */
#privateNotice .msg-no-info {
  color: #ffc107;
}

/* tab empty messages (no stories/posts/reels/highlights) */
.tab-empty-msg {
  position: relative;
  /* display: inline-flex;              so it shrinks to text width */
  align-items: center;
  justify-content: center;
  /* max-width: 520px; */
  /* margin: 1.1rem auto 0;             center inside .text-center column */
  padding: 1rem 1rem;
  border-radius: 10px;
  /* background: rgba(15, 17, 21, 0.96); */
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  font-size: 1rem;
  line-height: 1.45;
  color: #e5e7eb;                    /* override .text-muted grey a bit */
}

/* same gradient halo border as #search-error */
.tab-empty-msg::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(45deg, #ffb937, #ff7b3a, #af4261);
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* --- Search error box under the input --- */
#search-error {
  position: relative;
  max-width: 550px;
  margin: 10px auto 0;
  padding: 0.75rem 0.95rem;
  border-radius: 10px;
  /* background: rgba(15, 17, 21, 0.96); */
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.60);
}

/* gradient “halo” border, same logic as your ghost buttons */
#search-error::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(45deg, #ffb937, #ff7b3a, #af4261);
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* stats empty block – minimal dark card */
.stats-empty {
  margin-top: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px dashed rgba(156, 163, 175, 0.7);
  text-align: center;
  font-size: 0.9rem;
  color: #9ca3af;
  background: rgba(15, 17, 21, 0.9);
}



/* chart wrapper visible by default */
#statsChartWrap {
  display: block;
}

/* only the private block gets extra top margin */
#privateNotice {
  margin-top: 1rem;
}

#privateNotice .msg-no-info {
  color: #ffc107; /* same vibe as .text-warning */
}

/* Tablet (≤768px): 2 columns */
@media (max-width: 768px) {
  .step-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile (≤480px): 1 column stacked */
@media (max-width: 480px) {
  .step-container {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .header-nav {
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: #1c2027;
    flex-direction: column;
    gap: 15px;
    padding: 1rem;
    display: none;
    border-radius: 8px;
  }

  .header-nav.show {
    display: flex;
  }

  header {
    flex-wrap: wrap;
  }
}

/* ========== Mobile tweaks ========== */

/* Small phones (≤ 576px, Bootstrap “sm”) */
@media (max-width: 576px) {
  /* Give the whole hero/search area a bit more breathing room on notched phones */
  .main-container,
  .hero,
  .search-group,
  .trending-under-search {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  /* Search input + button */
  .search-group .form-control {
    font-size: 16px; /* prevents iOS zoom-on-focus */
    padding: 0.6rem 0.75rem;
  }
  .search-group .btn-search {
    padding: 0.55rem 0.8rem;
  }

  /* Trending ticker */
  .trending-under-search {
    margin-top: 0.6rem;
  }

  .trending-label {
    display: block; /* put label on its own line on phones */
    margin: 0 0 0.25rem 0;
    font-size: 0.92rem;
  }

  .ticker-viewport {
    display: block;
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0,
      black 4%,
      black 96%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0,
      black 4%,
      black 96%,
      transparent 100%
    );
  }

  .ticker-track {
    gap: 0.25rem;
    /* slow it down a touch on phones for readability */
    animation-duration: 26s;
  }

  .trend-link {
    font-size: 0.92rem;
    padding: 6px 0; /* larger tap target */
  }
  .trend-sep {
    margin: 0 0.25rem;
  }

  /* underline a bit thicker for small screens */
  .trend-link::after {
    height: 2.5px;
    bottom: -3px;
  }
}

/* Very small phones (≤ 400px) */
@media (max-width: 400px) {
  .trend-link {
    font-size: 0.9rem;
  }
  .trend-sep {
    display: inline-block;
    width: 0.4rem;
    text-align: center;
  }
  .ticker-track {
    animation-duration: 30s;
  } /* even slower for tiny screens */
}

/* Tall keyboards or landscape: keep it compact */
@media (max-height: 520px) {
  .trending-under-search {
    margin-top: 0.4rem;
  }
  .trending-label {
    margin-bottom: 0.15rem;
  }
  .ticker-track {
    animation-duration: 24s;
  }
}

@media (max-width: 576px) {
  .search-group,
  .trending-under-search {
    max-width: 100%;
    padding: 0 1rem;
  }
}

/* === ICG CAROUSEL — CANONICAL OVERRIDES (place at end of main.css) === */
.icg-carousel {
  position: relative;
}
.icg-carousel .icg-viewport {
  position: relative;
  overflow: hidden;
}

/* Make EVERY slide render so we can animate; layer them */
.icg-carousel .icg-slide {
  display: block !important; /* override any display:none */
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(0);
  transition:
    transform 0.22s ease,
    opacity 0.22s ease;
  will-change: transform, opacity;
  pointer-events: none; /* hidden slides ignore clicks */
}
.icg-carousel .icg-slide.current {
  position: relative; /* gives the parent height */
  opacity: 1;
  pointer-events: auto;
}

/* direction-aware nudge + fade driven by app.js */
.icg-slide.enter {
  opacity: 1;
}
.icg-carousel.dir-next .icg-slide.enter {
  transform: translateX(12px);
}
.icg-carousel.dir-prev .icg-slide.enter {
  transform: translateX(-12px);
}
.icg-carousel.dir-next .icg-slide.exit {
  transform: translateX(-12px);
  opacity: 0;
}
.icg-carousel.dir-prev .icg-slide.exit {
  transform: translateX(12px);
  opacity: 0;
}

/* arrows always clickable and on top */
.icg-carousel .icg-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 56px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: 0;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.icg-carousel .icg-nav.prev {
  left: 8px;
}
.icg-carousel .icg-nav.next {
  right: 8px;
}
.icg-carousel .icg-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 9999;
}
.icg-carousel .icg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.4);
}
.icg-carousel .icg-dot.active {
  background: #fff;
}

/* footer line contrast */
.timestamp-text {
  color: #cfd3dc;
}

.io-sentinel {
  width: 100%;
  height: 1px; /* tiny, invisible trigger */
}
.io-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 56px;
}
.io-spinner[hidden] {
  display: none;
}

/* Backdrop behind the mobile menu */
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  z-index: 2500;
  transition: opacity 160ms ease;
}
.menu-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile menu as an overlay panel */
@media (max-width: 768px) {
  .header-nav {
    position: fixed; /* take it out of flow */
    top: 60px; /* header height; tweak if yours differs */
    left: 24px;
    right: 24px; /* not full width: nice margins */
    z-index: 3000; /* above backdrop */
    background: #1c2027;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    max-height: calc(100vh - 60px - 16px);
    overflow: auto;

    /* hidden state */
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 160ms ease,
      opacity 160ms ease;
  }

  .header-nav.show {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
  }

  /* Optional: make items stack vertically */
  .header-nav a {
    display: block;
    padding: 12px 16px;
  }
}

/* Desktop look: keep links inline */
.header-nav .dropdown.nav-howto > .dropdown-toggle {
  display: inline-block;
  padding: 8px 12px;
  text-decoration: none;
}

/* Tweak dropdown colors to match your dark theme */
.header-nav .dropdown-menu {
  background: #1c2027;
  border: 1px solid #2a2f36;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.header-nav .dropdown-item {
  color: #e0e0e0;
}
.header-nav .dropdown-item:hover,
.header-nav .dropdown-item:focus {
  background: #2a2f36;
  color: #fff;
}

/* Mobile overlay panel: make dropdown expand IN the panel (not absolute popover) */
@media (max-width: 768px) {
  .header-nav .dropdown-menu {
    position: static; /* so it flows inside the fixed panel */
    float: none;
    transform: none !important;
    box-shadow: none;
    border: 0;
    margin-top: 6px;
    padding: 6px 0;
    background: transparent; /* inherit panel background */
  }
  .header-nav .dropdown-item {
    padding-left: 22px; /* slight indent under parent item */
  }

  /* Make the toggle full-width like your other mobile links */
  .header-nav .dropdown.nav-howto > .dropdown-toggle {
    display: block;
    width: 100%;
    padding: 12px 16px;
  }
}
@media (min-width: 769px) {
  .header-nav .dropdown.nav-howto:hover > .dropdown-menu {
    display: block;
    margin-top: 0.25rem;
  }
}

/* Mobile: keep dropdown inside your fixed overlay panel (no pop-out) */
@media (max-width: 768px) {
  .header-nav .dropdown-menu {
    position: static;
    transform: none !important;
    float: none;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 6px 0;
    margin-top: 6px;
  }
  .header-nav .dropdown.nav-howto > .dropdown-toggle {
    display: block;
    width: 100%;
    padding: 12px 16px; /* like your other mobile links */
  }
  .header-nav .dropdown-item {
    padding: 10px 16px 10px 22px; /* slight indent under parent */
  }
}

/* Center items inside the How To dropdown on desktop */
.header-nav .dropdown.nav-howto .dropdown-menu {
  text-align: center; /* center all text inside the panel */
  min-width: 240px; /* optional: a nicer width so lines don't wrap too soon */
}

.header-nav .dropdown.nav-howto .dropdown-item {
  display: block; /* keep full-width click target */
  padding: 8px 16px; /* symmetric left/right padding */
  text-align: center; /* center the label */
}

/* If you want the caret of the toggle to align visually with centered items */
.header-nav .dropdown.nav-howto > .dropdown-toggle::after {
  margin-left: 6px; /* keep caret close to label */
}

/* Mobile: keep centered too (remove previous left indent) */
@media (max-width: 768px) {
  .header-nav .dropdown.nav-howto .dropdown-menu {
    text-align: center;
  }
  .header-nav .dropdown.nav-howto .dropdown-item {
    padding: 10px 16px; /* remove the earlier 22px left indent */
    text-align: center;
  }
}

/* Mobile: render the How To dropdown inline (accordion-style) */
@media (max-width: 768px) {
  /* Turn off popover behavior visually */
  .header-nav .dropdown.nav-howto .dropdown-menu {
    position: static !important; /* inline in the flow */
    transform: none !important; /* kill popper transforms */
    inset: auto !important;
    display: none; /* hidden until parent gets .open */
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 6px 0;
    margin: 6px 0 0;
    text-align: center; /* keep centered, optional */
  }

  /* When open on mobile, show items and push content down */
  .header-nav .dropdown.nav-howto.open .dropdown-menu {
    display: block;
  }

  /* Make the toggle a full-width row like other mobile links */
  .header-nav .dropdown.nav-howto > .dropdown-toggle {
    display: block;
    width: 100%;
    padding: 12px 16px;
  }

  /* Optional: rotate caret when open */
  .header-nav .dropdown.nav-howto > .dropdown-toggle::after {
    transition: transform 160ms ease;
  }
  .header-nav .dropdown.nav-howto.open > .dropdown-toggle::after {
    transform: rotate(180deg);
  }

  /* Keep dropdown items centered and tappable */
  .header-nav .dropdown.nav-howto .dropdown-item {
    padding: 10px 16px;
    text-align: center;
  }
  .profile-skeleton .skeleton-line.short {
    width: 60%;
  }
  .profile-skeleton .skeleton-line.long {
    width: 80%;
  }
}

/* Stats delta row */
#statsDelta {
  display: flex;
  justify-content: center; /* ⟵ center horizontally */
  align-items: center;
  gap: 8px; /* space between pills */
  flex-wrap: wrap; /* wrap on small screens */
  margin: 10px 0 14px;
  text-align: center; /* fallback if flex breaks */
}

/* Pills */
#statsDelta .pill {
  background: #171a20; /* your gray */
  /* color: #fff; readable on the gray */
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 10px;
  border-radius: 9999px; /* full rounded */
  font-size: 0.85rem;
  line-height: 1;
  white-space: nowrap;
}

.stats-delta .up {
  color: #01c23c;
}
.stats-delta .down {
  color: #ff0000;
}
.stats-delta .flat {
  color: #ccc;
}

.stats-delta { display: none; }
.stats-delta.is-visible {
  display: flex;           /* not block */
  gap: 8px;
  align-items: center;     /* optional */
  flex-wrap: wrap;         /* optional */
}

.hidden {
  display: none !important;
}

.stats-panel {
  margin: 16px 0;
} /* margin lives on the panel */
.chart-wrap {
  position: relative;
  height: 280px;
} /* your chart height */

#statsChartWrap {
  position: relative;
  height: 520px; /* pick what you want */
  min-height: 320px; /* keeps it from collapsing on re-init */
}
#statsChart {
  width: 100% !important;
  height: 100% !important;
}

/* --- Stats tab controls --- */
.stats-controls {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.015)
  );
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 10px 14px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: inline-flex;
  /* so it doesn't stretch full width */
}

.stats-controls:empty {
  display: none !important;
  padding: 0;
  border: 0;
  background: none;
}

.stats-controls label {
  color: #dcdcdc;
  font-weight: 500;
}

.stats-select {
  background: #0f1014;
  border: 1px solid rgba(255, 185, 55, 0.05);
  color: #fff;
  width: 170px;
  min-width: 150px;
  /* make it match rounded cards */
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.stats-select:focus {
  border-color: rgba(255, 123, 58, 0.6);
  outline: none;
  box-shadow: 0 0 0 0.08rem rgba(255, 123, 58, 0.4);
}

#statRangeInfo {
  /* subtle muted text like the rest of the site */
  color: #b7b7b7 !important;
  white-space: nowrap;
}

/* mobile: stack nicely */
@media (max-width: 576px) {
  .stats-controls {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .stats-select {
    width: 100%;
  }
  #statRangeInfo {
    white-space: normal;
  }
}

#contentTabs {
  display: flex; /* already true for .nav-tabs, but safe */
  row-gap: 12px; /* the vertical spacing you asked for */
}

/* full-width separator that appears between wrapped rows */
#tabsRowSeparator {
  flex: 1 0 100%;
  height: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  /* your requested spacing */
}

/* keep single-line labels and stacking context */
#contentTabs .nav-link {
  position: relative;
  white-space: nowrap;
  z-index: 1;
}

/* only when Stats wraps, add spacing + a line ABOVE it */
#contentTabs .nav-item.is-wrapped {
  --wrap-gap: 10px; /* tweak to taste */
  margin-top: var(--wrap-gap);
}

/* use ::after for the hairline so ::before remains free for your click effect */
#contentTabs .nav-item.is-wrapped .nav-link::after {
  content: "";
  position: absolute;
  top: calc(0 * var(--wrap-gap)); /* sits exactly at the row break */
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.85);
  pointer-events: none;
  z-index: -1; /* behind your ::before underline if it overlaps */
}

/* Pulsing halo behind spinner */
.audit-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(156, 163, 175, 0.4); /* same grey vibe */
  animation: auditPulse 1.4s infinite ease-out;
}

@keyframes auditPulse {
  0% {
    transform: scale(0.7);
    opacity: 1;
  }
  70% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Wrapper for the spinner + texts */
.audit-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 12px;
  text-align: center;
  font-size: 0.9rem;
  color: #9ca3af;
  line-height: 1.4;
}

/* The circle container that holds pulse + bootstrap spinner */
.audit-loading-icon {
  position: relative;
  width: 40px;
  height: 40px;
}

/* The actual Bootstrap spinner */
.audit-loading-icon .spinner-border {
  width: 24px;
  height: 24px;
  border-width: 3px;
  position: absolute;
  top: 8px;
  left: 8px;
  color: #9ca3af; /* matches downloader grey */
}

/* Main status line (“Searching profile…”) */
.audit-loading-text {
  margin-top: 10px;
  min-height: 2.2em; /* keeps layout from jumping when we swap text */
  color: #d1d5db; /* slightly brighter than ring */
  font-weight: 500;
  font-size: 0.95rem;
  text-align: center;
  max-width: 240px;
}

/* Hint/subtext (“This can take a few seconds…”) */
.audit-loading-hint {
  margin-top: 4px;
  font-size: 0.8rem;
  color: #6b7280;
  max-width: 260px;
  text-align: center;
  line-height: 1.4;
}

/* utility we already had */
.text-light-gray {
  color: #9ca3af !important;
}

.caption-toggle-btn {
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.2;
  font-weight: 500;
  color: #9ca3af; /* gray-400 vibe */
  text-decoration: underline;
  cursor: pointer;
}

.caption-toggle-btn:hover,
.caption-toggle-btn:focus {
  color: #d1d5db; /* lighter gray on hover */
  text-decoration: underline;
  outline: none;
}

.seo-only {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.profile-cta-text {
  font-size: 0.9rem;
}

/* base button */
.profile-cta-btn-ghost {
  position: relative;
  display: inline-block;
  margin-top: 5px;
  margin-bottom: 5px;
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: transparent;
  border: none;
  overflow: hidden;
  z-index: 0;
}

/* gradient border */
.profile-cta-btn-ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(45deg, #ffb937, #ff7b3a, #af4261);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

/* fill layer – always gradient, but start invisible */
.profile-cta-btn-ghost::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 3px;
  background: linear-gradient(45deg, #ffb937, #ff7b3a, #af4261);
  opacity: 0; /* start hidden */
  transition: opacity 0.5s ease; /* <– smooth! */
  z-index: 2;
}

/* text on top */
.profile-cta-btn-ghost > span,
.profile-cta-btn-ghost > strong,
.profile-cta-btn-ghost {
  position: relative;
  z-index: 3;
}

/* hover */
.profile-cta-btn-ghost:hover,
.profile-cta-btn-ghost:focus {
  box-shadow: 0 0 15px rgba(255, 123, 58, 0.6);
}

.profile-cta-btn-ghost:hover::after,
.profile-cta-btn-ghost:focus::after {
  opacity: 1; /* fade in the gradient */
}

/* ===========================
   Glassy card containers
   =========================== */
.card-box {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: clamp(14px, 1.8vw, 20px);
  margin: 16px 0;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease;
}
.card-box:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 185, 55, 0.25);
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 22px 0 rgba(255, 185, 55, 0.1),
    0 0 30px 0 rgba(175, 66, 97, 0.08);
}

/* let vertical scrolling pass through cards */
.card,
.card img,
.card video {
  touch-action: pan-y;
}

/* nice to have */
.card img {
  -webkit-user-drag: none;
}
/* 3. global hint */
html,
body {
  touch-action: pan-y;
}

/* 1. chart shouldn't block vertical scroll */
#statsChart,
#statsChartWrap,
#statsChartWrap canvas {
  touch-action: pan-y;
}

#loadingProfile {
  min-height: 120px; /* whatever your skeleton height is */
}

/* tabs base */
#tabsContainer {
  position: relative;
}

/* when we're loading a new user */
#tabsContainer.is-loading {
  /* keep space, but hide inner stuff */
}

#tabsContainer.is-loading .nav,
#tabsContainer.is-loading .tab-content {
  opacity: 0; /* invisible but still takes space */
  pointer-events: none;
}

/* show a cover skeleton over it */
#tabsContainer.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.04),
    rgba(0, 0, 0, 0)
  );
  border-radius: 1rem;
}

/* when we're fetching a new user, hide the old header info */
#profile-container.is-loading-profile #profile-pic-wrapper,
#profile-container.is-loading-profile #profile-info,
#profile-container.is-loading-profile #user-stats {
  opacity: 0;
  pointer-events: none;
}

/* keep the container height */
#profile-container.is-loading-profile {
  position: relative;
}

#profile-container.is-loading-profile {
  /* min-height: 160px; same as MAX_SKELETON */
}

.story-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.story-link-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  line-height: 1;
  text-decoration: none;
  
  /* more subtle, glassy look */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f5f5f5;

  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}

.story-link-pill:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  border-color: #ff7a3c; /* tiny accent on hover */
}

.story-link-pill-icon {
  margin-right: 0.3rem;
  font-size: 0.9rem;
}

.story-link-pill-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* @mentions in bio + captions */
.profile-bio a.ig-mention,
.post-bio a.ig-mention {
  color: #f88906;          /* same yellow as blog links */
  font-weight: 600;
  text-decoration: none;
}

/* Hover state */
.profile-bio a.ig-mention:hover,
.post-bio a.ig-mention:hover {
  text-decoration: underline;
}

.status-banner {
  margin: 0 0 1rem;
  padding: 0.6rem 0.9rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-banner-warning {
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.4);
  color: #856404;
}

.status-banner .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ffc107;
  flex-shrink: 0;
}
