/* RESET & BOX-SIZING */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  font-family: "Poppins", sans-serif;
  background: #f9faff;
  color: #333;
}

/* 2) Lock the viewport to vertical only */

/* 1) Reset the world & get predictable box-sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 2) Prevent any horizontal overflow */

main,
section,
div {
  max-width: 100%;
  box-sizing: border-box;
}

*,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
button,
input {
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(135deg, #f9faff, #eef1f8);
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.list-toggle {
  display: none;
}
.logo a {
  display: flex;
  align-items: center;
  font-size: 2rem;
  font-weight: 900;
  color: #6a1b9a;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo img {
  height: 60px;
  margin-right: 6px;
  transition: all 0.3s ease;
}

.logo img:hover {
  transform: translateY(-3px) scale(1.05);
  filter: drop-shadow(0 0 6px #9c27b0);
}
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards;
}

.fade-in-up.delay-1 {
  animation-delay: 0.2s;
}

.fade-in-up.delay-2 {
  animation-delay: 0.4s;
}

.fade-in-up.delay-3 {
  animation-delay: 0.6s;
}
.fade-in-up.delay-4 {
  animation-delay: 0.8s;
} /* staggers after the search box */

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

nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: #4a148c;
  font-weight: 600;
  font-size: 1rem;

  transition: color 0.3s;
}

nav a:hover {
  color: #6a1b9a;
}
.dropdown-wrapper {
  position: relative;
  z-index: 1000;
}
header {
  width: 100%;
  background: transparent;
  padding: 1rem 0;
  z-index: 1000; /* only top/bottom padding, no weird inner padding */
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  flex: 1;
}

.center-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.right-link {
  margin-left: auto;
}

.nav-link {
  text-decoration: none;
  color: #4a148c;
  font-weight: 600;
  position: relative;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #6a1b9a;
}

.nav-links {
  transition: all 0.3s ease;
  transform: translateY(-10px);
}

.dropdown-toggle {
  background: none;
  border: none;
  color: #4a148c;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s ease;
}

.dropdown-toggle:hover {
  color: #6a1b9a;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  min-width: 150px;
  z-index: 9999;
}

.dropdown-menu a {
  padding: 0.8rem 1rem;
  text-decoration: none;
  color: #4a148c;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.3s ease;
  text-align: center;
  width: 100%;
}

.dropdown-menu a:hover {
  background-color: #f4e9fb;
}

.dropdown-wrapper:hover .dropdown-menu {
  display: flex;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem 3rem;
}

.tagline {
  font-size: 3.2rem;
  font-weight: 900;
  text-align: center;
  max-width: 720px;
  margin: 3rem 0 1rem;
  line-height: 1.2;
  background: linear-gradient(to right, #6a1b9a, #4a148c);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtext {
  font-size: 1.3rem;
  color: #555;
  text-align: center;
  max-width: 700px;
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

.search-box {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 500px;
  margin-bottom: 1.5rem;
}

.search-box input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #ccc;
  border-radius: 12px;
  font-size: 1rem;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-box input:focus {
  outline: none;
  border-color: #6a1b9a;
  box-shadow: 0 0 0 4px rgba(106, 27, 154, 0.2);
}

.search-box button {
  padding: 0.9rem 2.2rem;
  font-size: 1rem;
  font-weight: bold;
  background-color: #4a148c;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-box button:hover {
  background-color: #6a1b9a;
  transform: scale(1.03);
  box-shadow: 0 4px 14px rgba(106, 27, 154, 0.3);
}
.search-box button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #aaa !important;
  transform: none !important;
  box-shadow: none !important;
}

.lists {
  display: none;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.lists.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.list-column {
  background: #fff;
  padding: 1.8rem;
  border-radius: 16px;
  min-width: 280px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.list-column h2 {
  text-align: center;
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2c2c54;
}

.list-column ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.list-item img.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #bbb;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-info a {
  font-weight: 700;
  color: #6a1b9a;
  text-decoration: none;
}

.user-info span {
  font-size: 0.9rem;
  color: #555;
}

.fade-in-load {
  animation: fadeInSlide 0.8s ease forwards;
}
.user-circle {
  width: 34px;
  height: 34px;
  background-color: #4a148c;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s;
}

.user-circle:hover {
  background-color: #6a1b9a;
}

.dropdown {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 50px;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  min-width: 150px;
  z-index: 20;
}

.dropdown a {
  padding: 0.8rem 1rem;
  text-decoration: none;
  color: #4a148c;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.3s;
}

.dropdown a:hover {
  background-color: #f4e9fb;
}
.mobile-menu {
  display: none; /* Always hidden by default */
}

@keyframes fadeInSlide {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#storiesToggle {
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  background-color: #2196f3;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.3s, transform 0.3s;
}

#storiesToggle:hover {
  background-color: #1976d2;
  transform: scale(1.05);
}

#storiesContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
}

#storiesList {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

#storiesList a {
  color: #4a148c;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
}

#storiesList a:hover {
  text-decoration: underline;
  color: #6a1b9a;
}

/* Testimonials Section */
section {
  animation: fadeInSlide 0.8s ease;
}

section > div:hover {
  transform: translateY(-4px);
  transition: transform 0.3s ease;
}

details summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.1rem;
  color: #4a148c;
}

details[open] summary {
  color: #6a1b9a;
}

details {
  transition: all 0.3s ease;
  background: #f4e9fb;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.hamburger {
  display: none; /* Hide hamburger by default on desktop */
}
.how-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  min-width: 260px;
  max-width: 300px;
  flex: 1 1 300px;
}
footer {
  margin-top: 3rem;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #777;
  text-align: center;
}

footer a {
  color: #4a148c;
  text-decoration: none;
  margin: 0 0.5rem;
  font-weight: 500;
}

footer a:hover {
  color: #6a1b9a;
}

/*what gpt told me to add to clean up footer */
.footer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  border-top: 1px solid #ddd;
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 2rem;
  text-align: center;
}

.footer-left,
.footer-right {
  flex: 1 1 100%;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.tiktok-section-mobile {
  display: none;
}
.blog-carousel {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap; /* cards wrap onto new lines */
  overflow-x: visible; /* no scrollbars */
  justify-content: center;
}
.blog-carousel::-webkit-scrollbar {
  display: none;
}

.blog-card {
  flex: 1 1 280px; /* card width */
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  max-width: 280px;
  overflow: visible;
}
.blog-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.blog-card .card-content {
  padding: 1rem 1rem 1.5rem;
}
.blog-card .card-content h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}
.blog-card .card-content p {
  font-size: 0.9rem;
  color: #555;
  margin: 0.5rem 0 0; /* a touch of top margin so it doesn't butt up right against the title */
  line-height: 1.4;
}
.live-counter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem auto 0;
  font-size: 0.95rem;
  color: #374151;
}
.live-counter .dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15),
    0 0 8px rgba(16, 185, 129, 0.4);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25),
      0 0 8px rgba(16, 185, 129, 0.4);
  }
  50% {
    transform: scale(1.25);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.15),
      0 0 14px rgba(16, 185, 129, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25),
      0 0 8px rgba(16, 185, 129, 0.4);
  }
}
.live-counter b {
  color: #111827;
}

/* Keep number + "anonymous" glued together */
.live-counter .grp {
  white-space: nowrap;
}

/* Desktop copy handling */
.copy--short {
  display: none;
}
.promo-banner {
  width: 100%;
  background: linear-gradient(90deg, #4a148c, #7c3aed);
  color: #fff;
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 50;
}

.promo-banner strong {
  font-weight: 700;
}

.promo-timer {
  font-weight: 700;
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

@media (max-width: 768px) {
  .promo-banner {
    flex-direction: column;
    font-size: 0.85rem;
    padding: 0.6rem 0.8rem;
  }
}
/* MOBILE POLISH */

@media (max-width: 768px) {
  .live-counter {
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    line-height: 1.25;
    margin-top: 0.5rem;
    background: transparent;
    box-shadow: none;
    padding: 0;
    width: auto;
  }
  .live-counter .dot {
    width: 8px;
    height: 8px;
  }
  .copy--long {
    display: none;
  }
  .copy--short {
    display: inline;
  }
  section {
    padding: 2rem 1rem;
    margin: 0 auto;
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
    touch-action: pan-y;
    overscroll-behavior-x: none;
  }

  /* Inside sections */
  section > div {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    max-width: 100%;
    padding: 0 !important;
  }
  .list-item {
    display: flex; /* (re-declare if you're overriding elsewhere) */
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
  }

  /* make the text block shrink below its content width */
  .list-item .user-info {
    flex: 1 1 0;
    min-width: 0;
  }

  /* allow usernames and names to break/wrap as needed */
  .list-item .user-info a,
  .list-item .user-info span {
    white-space: normal !important;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .how-card {
    flex: 1 1 200px !important; /* base width = 200px */
    min-width: 200px !important;
    max-width: 240px !important; /* cap at 240px */
    padding: 1rem !important; /* tighten up the padding */
    margin-bottom: 1rem !important; /* add some bottom spacing */
    box-sizing: border-box;
  }
  .how-card img {
    width: 40px; /* scale down the icon */
    margin-bottom: 0.5rem;
  }
  .how-card h3 {
    font-size: 1rem; /* slightly smaller heading */
    margin-bottom: 0.23rem;
  }
  .how-card p {
    font-size: 0.85rem; /* slightly smaller body copy */
    margin: 0;
  }
  #why-choose .why-grid {
    display: flex !important;
    flex-direction: column !important;
    padding: 1rem !important;
  }

  /* 2) Each feature takes 100% width */
  #why-choose .why-grid .feature {
    flex: none !important;
    width: 100% !important;
    padding: 1rem !important;
    text-align: center;
  }

  /* 3) Make the divider a horizontal line */
  #why-choose .why-grid .divider {
    display: block !important;
    width: 100% !important;
    height: 1px !important;
    background: #ddd !important;
    margin: 1rem 0 !important;
  }
  /* shrink How-card as before… */
  .how-card {
    flex: 1 1 200px;
    max-width: 240px;
    padding: 1rem;
  }
  /* Shrink lists */
  .lists {
    flex-direction: column;
    align-items: center;
    max-width: 100%;
  }

  /* Shrink list columns */
  .list-column {
    padding: 1.2rem;
    max-width: 300px;
    margin-bottom: 1rem;
  }

  .list-column h2 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
  }

  .list-column p {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  /* Mobile search box */
  .search-box {
    width: 100%;
    padding: 1.5rem;
    max-width: 400px;
  }

  /* Tagline and subtext */
  .tagline {
    font-size: 2rem;
    max-width: 90%;
    margin: 2rem 0 1rem;
  }

  .subtext {
    font-size: 1rem;
    max-width: 90%;
    margin-bottom: 2rem;
  }

  /* Hide desktop nav links */
  .nav-links {
    display: none !important;
  }

  /* Mobile menu */
  .mobile-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    z-index: 1000;
  }

  .mobile-menu a {
    text-decoration: none;
    color: #4a148c;
    font-weight: 600;
    margin-bottom: 0.75rem;
  }

  .mobile-menu a:hover {
    color: #6a1b9a;
  }

  .mobile-menu.show {
    display: flex;
  }

  /* Header container mobile */
  .header-container {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    overflow-x: hidden;
    padding: 0 1rem;
  }

  /* Hamburger menu */
  .hamburger {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    color: #4a148c;
    cursor: pointer;
    margin-left: auto;
  }

  /* Center links mobile */
  .center-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .right-link {
    margin: 1rem 0 0 0;
    width: 100%;
    text-align: center;
  }

  /* Dropdowns mobile */
  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: white;
    padding: 0;
    margin-top: 0.5rem;
  }

  .dropdown-wrapper:hover .dropdown-menu {
    display: none;
  }
  /* tighten up the "pill" spacing */
  .list-toggle {
    display: flex; /* flex so margin:auto centers it */
    width: max-content; /* shrink‑wrap to buttons + gap + padding */
    margin: 0.5rem auto 0.1rem; /* give it breathing room above & below, center horizontally */
    background: #f4f5f8;
    border-radius: 9999px;
    padding: 8px; /* the "gleam" around the buttons */
    gap: 4px;
    border: none;
    box-shadow: none;
  }

  /* Slim down the individual buttons */
  .list-toggle button {
    padding: 0.8rem 1.4rem; /* ~half your current padding */
    font-size: 1.1rem; /* a hair smaller text */
    font-weight: 600;
    color: #333;
    border: none;
    box-shadow: none;
  }

  /* Outer‑corner rounding & active colors stay the same */
  .list-toggle button:first-child {
    border-radius: 9999px 0 0 9999px;
  }
  .list-toggle button:last-child {
    border-radius: 0 9999px 9999px 0;
  }
  .list-toggle button.active {
    background: #6a1b9a;
    color: #fff;
  }
  .list-toggle button:not(.active) {
    background: #e0e0e0;
  }
  .list-column {
    display: none;
  }
  /* show whichever one has the "show" class */
  .list-column.show {
    display: flex; /* or block, whichever fits your layout */
    flex-direction: column; /* if you want it stacked vertically */
  }
  /* code works */
  footer > div > div:first-child {
    text-align: center !important;
  }
  footer > div > div:last-child {
    flex: none !important;
    width: 100% !important;
    text-align: center !important;
    margin-top: 1rem !important;
  }
  footer > div > div:last-child > div {
    justify-content: center !important;
    gap: 0.5rem !important;
  }
  .lists-wrapper {
    display: flex !important; /* override the inline style */
    flex-direction: column !important; /* stack vertically */
    align-items: center !important; /* center each .lists block */
    gap: 1rem !important; /* space between Following & Followers */
    width: 100% !important; /* full width of its parent */
    margin-top: 1rem !important;
    margin-bottom: 0; //* give it some breathing room */
  }
  .lists-wrapper .lists {
    display: none !important;
  }
  .lists-wrapper .lists.show {
    display: flex !important;
  }
  body:not(.is-pro) .list-column {
    display: flex !important;
    flex-direction: column;
  }
  .tiktok-section-mobile {
    display: none;
  }
  .tiktok-section-mobile {
    display: block;
    padding: 2rem 1rem;
    text-align: center;
  }

  .tiktok-logo-only {
    width: 150px;
    height: auto;
    margin-bottom: 1rem;
  }

  .tiktok-video-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    max-width: 500px;
    margin: 0 auto;
  }

  .tiktok-video-card video {
    width: 100%;
    height: auto;
    display: block;
  }
}
