/* ---- CSS Variables ---- */
:root {
  --primary:       #7c3aed;
  --primary-dark:  #6d28d9;
  --primary-light: #a78bfa;
  --accent:        #ec4899;
  --dark:          #0f172a;
  --text:          #334155;
  --muted:         #475569;
  --text-muted:    #475569;
  --border:        #e2e8f0;
  --bg-light:      #f8fafc;
  --bg-section:    #f1f5f9;
  --white:         #ffffff;
  --card-shadow:   0 2px 12px rgba(0,0,0,.07);
  --card-shadow-hover: 0 8px 32px rgba(124, 58, 237, .16);
  --radius:        16px;
  --radius-sm:     10px;
  --radius-pill:   999px;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
}

h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: clamp(1rem, 2vw, 1.2rem); }

p   { color: var(--muted); }
a   { color: var(--primary); }
a:hover { color: var(--primary-dark); }

/* ---- Utilities ---- */
.tracking-1  { letter-spacing: 1px; }
.cursor-pointer { cursor: pointer; }
.object-cover   { object-fit: cover; }
.object-center  { object-position: center; }
.relative       { position: relative; }

.list-square,
.article ul { list-style: square; }
.list-square *::marker,
.article ul *::marker { color: var(--accent); }

.section1mar { margin-top: 20px; }
.limit-para-width { max-width: 820px; margin: 0 auto; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  border-bottom: 1px solid var(--border);
  background: var(--white) !important;
  padding: 12px 0;
}

.navbar-brand img { width: 150px; height: auto; }

.primary-nav .nav-item .nav-link {
  font-weight: 600;
  color: var(--dark);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all .2s;
}

.primary-nav .nav-item .nav-link:hover,
.primary-nav .nav-item .nav-link.active {
  color: var(--primary);
  background: rgba(124, 58, 237, .07);
}

.dropdown-menu {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  padding: 6px;
  background: var(--white);
}

.dropdown-item {
  border-radius: 6px;
  padding: 8px 14px;
  font-size: .93rem;
  color: var(--dark);
  white-space: normal;
  transition: background .15s;
}
.dropdown-item:hover     { background: var(--bg-light); color: var(--primary); }
.dropdown-item.active,
.dropdown-item:active    { background: var(--primary); color: var(--white); }

#primarySidenav { width: 290px; }
#primarySidenav .list-group-item.active {
  background-color: var(--primary);
  border-color: var(--primary);
}

#dropdownMenuButton1 {
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
}

/* =============================================
   HERO SECTION  (fastdl.app style)
   ============================================= */
.hero-section {
  background: linear-gradient(150deg, #1e1b4b 0%, #4c1d95 35%, #7c3aed 65%, #a855f7 100%);
  padding: 48px 20px 56px;
  text-align: center;
  position: relative;
}

/* Decorative blurred blobs */
.hero-section::before,
.hero-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  pointer-events: none;
}
.hero-section::before {
  width: 420px; height: 420px;
  background: #ec4899;
  top: -120px; right: -80px;
}
.hero-section::after {
  width: 320px; height: 320px;
  background: #818cf8;
  bottom: -100px; left: -60px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
}

/* ---- Platform Tabs ---- */
.hero-tabs-wrap {
  margin-bottom: 28px;
}

.hero-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-tabs li {
  list-style: none;
}

.hero-tab-link {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.9);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.hero-tab-link:hover {
  background: rgba(255,255,255,.22);
  color: var(--white);
  text-decoration: none;
}
.hero-tab-link.active {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.hero-tab-link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Mobile: all tabs in exactly one line, icon top + label below */
@media (max-width: 575.98px) {
  .hero-tabs {
    flex-wrap: nowrap;
    width: 100%;
    gap: 4px;
    padding: 0;
  }

  .hero-tabs li {
    flex: 1;
    min-width: 0;
  }

  .hero-tab-link {
    flex-direction: column;
    width: 100%;
    gap: 3px;
    padding: 7px 2px;
    font-size: .75rem;
    border-radius: 10px;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
    min-width: 0;
  }

  .hero-tab-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .hero-tab-link span {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ---- Hero Title ---- */
.hero-title {
  font-size: clamp(1.75rem, 4.5vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero-subtitle {
  color: rgba(255, 255, 255, .78);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 32px;
}

/* ---- Search Form ---- */
.hero-search-form {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 40px rgba(0, 0, 0, .25);
  overflow: hidden;
  max-width: 660px;
  margin: 0 auto;
}

.hero-input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.hero-input {
  display: block;
  width: 100%;
  height: 58px;
  padding: 0 90px 0 24px;
  font-size: .97rem;
  font-family: inherit;
  border: none;
  outline: none;
  color: var(--dark);
  background: transparent;
}

.hero-input::placeholder { color: #b0b7c3; }

.hero-paste {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  height: 34px;
  border-radius: 8px;
  background: #ede9fe;
  border: 1px solid #7c73f3;
  color: #5b21b6;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.hero-paste:hover { background: #e4e2ff; border-color: #7c73f3; }
.hero-paste svg { width: 13px; height: 13px; flex-shrink: 0; }
.hero-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: #b0b7c3;
  cursor: pointer;
  transition: background .15s, color .15s;
  padding: 0;
}
.hero-clear:hover { background: var(--bg-light); color: var(--dark); }
.hero-clear svg { width: 11px; height: 11px; }

.hero-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 58px;
  padding: 0 28px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: 2px solid rgba(255, 255, 255, .35);
  color: var(--white);
  font-size: .93rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity .2s, box-shadow .2s, border-color .2s;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
}
.hero-btn:hover {
  opacity: .92;
  border-color: rgba(255, 255, 255, .65);
  box-shadow: 0 4px 20px rgba(236, 72, 153, .4);
}

/* Results wrapper inside hero */
.hero-results {
  margin-top: 28px;
}

/* =============================================
   LOADER
   ============================================= */
#loader {
  z-index: 99;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(4px);
}
#loader .spinner-border {
  width: 3.5rem;
  height: 3.5rem;
  border-width: .35rem;
  color: var(--primary) !important;
}

/* =============================================
   RESULT CARDS
   ============================================= */
#result {
  padding: 10px 0 20px;
}
#result .card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: box-shadow .25s, transform .25s;
  background: var(--white);
}
#result .card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
}
#result .card-body { padding: 0; }
#result .card-footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
}

/* Download buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  border-radius: var(--radius-pill);
  padding: 9px 26px;
  font-weight: 600;
  letter-spacing: .3px;
  transition: opacity .2s, box-shadow .2s;
}
.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: .9;
  box-shadow: 0 4px 16px rgba(124, 58, 237, .3);
}

/* Standalone pill button (TikTok etc) */
.prbtnsearch {
  height: 56px;
  padding: 0 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  border-radius: var(--radius-pill);
  color: var(--white);
  font-size: .95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity .2s;
  margin-left: 10px;
}
.prbtnsearch:hover { opacity: .9; }

/* =============================================
   FACEBOOK RESULTS TABLE
   ============================================= */
table {
  border-collapse: collapse;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
th, td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--border); }
th {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  font-weight: 600;
}
caption { font-size: 1.5em; margin: .25em 0 .75em; color: var(--dark); }
td button, td a.btn {
  background: var(--primary);
  border: none;
  color: var(--white);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: .85rem;
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
}
td button:hover, td a.btn:hover { background: var(--primary-dark); }

/* =============================================
   FAQ ACCORDION
   ============================================= */
.accordion-custom .accordion-button {
  background: transparent;
  color: var(--dark);
  font-weight: 600;
  box-shadow: none;
}
.accordion-custom .accordion-button:not(.collapsed) {
  color: var(--primary);
  background: transparent;
  box-shadow: none;
}
.accordion-custom .accordion-button::after {
  background-image: url("data:image/svg+xml,%3Csvg fill='%237c3aed' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M432 256c0 17.69-14.33 32.01-32 32.01H256v144c0 17.69-14.33 31.99-32 31.99s-32-14.3-32-31.99v-144H48c-17.67 0-32-14.32-32-32.01s14.33-31.99 32-31.99H192v-144c0-17.69 14.33-32.01 32-32.01s32 14.32 32 32.01v144h144C417.7 224 432 238.3 432 256z'/%3E%3C/svg%3E");
  width: 18px; height: 18px; background-size: 16px;
}
.accordion-custom .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3Csvg fill='%237c3aed' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M400 288h-352c-17.69 0-32-14.32-32-32.01s14.31-31.99 32-31.99h352c17.69 0 32 14.3 32 31.99S417.7 288 400 288z'/%3E%3C/svg%3E");
}
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius-sm) !important; margin-bottom: 8px; }
.faqtext { color: var(--text); }

/* =============================================
   CONTENT SECTIONS – Modern article layout
   ============================================= */

/* Section wrapper */
.content-sec {
  padding: 64px 0;
}
.content-sec:nth-child(even) {
  background: var(--bg-section);
}

/* Legacy section alternating bg kept for pages not yet migrated */
section:nth-of-type(even) { background: var(--bg-section); }

/* ---- Article typography ---- */
.article {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

/* H2 – gradient accent underline */
.article h2 {
  position: relative;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--dark);
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 14px;
}
.article h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* H3 */
.article h3 {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  color: var(--dark);
  margin-top: 32px;
  margin-bottom: 10px;
}

/* Paragraphs */
.article p {
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 16px;
  font-size: 1rem;
}
.article strong { color: var(--dark); }

/* Unordered list */
.article ul {
  list-style: none !important;
  padding: 0;
  margin-bottom: 24px;
}
.article ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  color: var(--text);
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
}
.article ul li:last-child { border-bottom: none; }
.article ul li::before {
  content: '' !important;
  display: block !important;
  width: 8px;
  height: 8px;
  min-width: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  margin-top: 9px;
  flex-shrink: 0;
}

/* Ordered list – numbered gradient badges */
.article ol {
  list-style: none !important;
  padding: 0;
  margin-bottom: 24px;
  counter-reset: art-counter;
}
.article ol li {
  counter-increment: art-counter;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  color: var(--text);
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
}
.article ol li:last-child { border-bottom: none; }
.article ol li::before {
  content: counter(art-counter) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 50%;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Images inside article */
.article img {
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  max-width: 100%;
  height: auto;
  display: block;
  margin: 24px auto;
}

/* Image + text two-col layout */
.article-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.article-split img {
  border-radius: var(--radius);
  box-shadow: 0 4px 28px rgba(0,0,0,.09);
  width: 100%;
  height: auto;
  margin: 0;
}
@media (max-width: 767.98px) {
  .article-split { grid-template-columns: 1fr; gap: 24px; }
  .content-sec { padding: 44px 0; }
}

/* =============================================
   FOOTER
   ============================================= */
#footer {
  background: #0f172a;
  color: #cbd5e1;
}
#footer h3 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}
#footer a.link-light {
  color: #cbd5e1;
  font-size: .9rem;
  transition: color .2s;
}
#footer a.link-light:hover {
  color: var(--white);
  text-decoration: none;
}
#footer ul li { margin-bottom: 6px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  color: #cbd5e1;
  transition: background .2s, color .2s;
}
.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
}
.footer-copyright {
  background: rgba(0,0,0,.3);
  color: #94a3b8;
  font-size: .875rem;
  padding: 14px 0;
  text-align: center;
}

/* =============================================
   ERROR MODAL
   ============================================= */
#linkErrorModal .modal-header { border-bottom: 1px solid var(--border); }
#linkErrorModal .modal-title  { color: var(--primary) !important; }
#linkErrorModal .modal-content { border-radius: var(--radius); }

/* =============================================
   LEGACY / COMPAT
   ============================================= */
/* Keep old class names working on other pages */
.home-banner {
  position: relative;
  overflow: hidden;
  min-height: 200px;
  aspect-ratio: 1132 / 281;
}

.facebook-home-banner {
  background: linear-gradient(150deg, #1e1b4b 0%, #4c1d95 35%, #7c3aed 65%, #a855f7 100%);
  padding: 60px 20px 50px;
  text-align: center;
}
.home-banner-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
}
.facebook-home-banner p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto; }

.cantainer2 { max-width: 1280px; margin: 0 auto; }

/* Old underline tabs (other pages) */
.nav-tabs-custom {
  border: 0;
  background: var(--white);
  border-bottom: 2px solid var(--border);
  overflow-x: auto;
  flex-wrap: nowrap;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.nav-tabs-custom::-webkit-scrollbar { display: none; }
.nav-tabs-custom .nav-item { flex-shrink: 0; }
.nav-tabs-custom .nav-item .nav-link {
  font-weight: 600;
  font-size: .82rem;
  color: var(--muted);
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 14px 18px;
  white-space: nowrap;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
}
.nav-tabs-custom .nav-item .nav-link:hover { color: var(--primary); }
.nav-tabs-custom .nav-item .nav-link.active,
.nav-tabs-custom .nav-item.show .nav-link {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: transparent;
}
.nav-tabs-custom .nav-item .nav-link svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Old search form classes (other pages) */
.inssearch-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
  gap: 0;
}
.insinput-group { position: relative; width: 55%; max-width: 600px; }
.insplace-holder {
  display: block; width: 100%; height: 56px;
  padding: 0 48px 0 22px;
  font-size: .95rem; font-family: inherit;
  border: 2px solid var(--primary-light);
  border-right: none;
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  outline: none; color: var(--dark); background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.insplace-holder:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .12);
}
.insplace-holder::placeholder { color: #b0b7c3; }
.insclear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  cursor: pointer; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--muted); transition: background .15s, color .15s;
}
.insclear:hover { background: var(--bg-light); color: var(--dark); }
.insclear svg { width: 12px; height: 12px; }
.btnsearch {
  height: 56px; padding: 0 30px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  color: var(--white); font-size: .95rem; font-weight: 700; font-family: inherit;
  cursor: pointer; white-space: nowrap;
  transition: opacity .2s, box-shadow .2s;
  display: flex; align-items: center; gap: 8px;
}
.btnsearch:hover { opacity: .92; box-shadow: 0 4px 18px rgba(124, 58, 237, .35); }

.si {
  display: inline-block; height: 1.1em; width: 1.1em;
  vertical-align: middle; position: relative; top: -.06em; overflow: visible;
}
.search-icon { stroke: currentColor; stroke-width: 1px; }

/* =============================================
   MISC / BOOTSTRAP OVERRIDES
   ============================================= */
.bg-light { background-color: var(--bg-light) !important; }
.btn-close:focus { box-shadow: none; }
.transition-all { transition: all 200ms ease-out; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 767.98px) {
  .hero-section { padding: 36px 16px 44px; }

  .hero-search-form {
    flex-direction: column;
    border-radius: var(--radius);
    overflow: visible;
    background: transparent;
    box-shadow: none;
    gap: 10px;
  }

  .hero-input-wrap {
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-pill);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.18);
  }

  .hero-input { height: 52px; }

  .hero-btn {
    width: 100%;
    justify-content: center;
    border-radius: var(--radius-pill);
    height: 52px;
    box-shadow: 0 4px 20px rgba(236, 72, 153, .35);
  }


  /* old form responsive */
  .inssearch-form { flex-direction: column; align-items: stretch; padding: 20px 16px; gap: 10px; }
  .insinput-group { width: 100%; }
  .insplace-holder { border-right: 2px solid var(--primary-light); border-radius: var(--radius-pill); }
  .btnsearch { border-radius: var(--radius-pill); width: 100%; justify-content: center; }
  .nav-tabs-custom .nav-item .nav-link { font-size: .875rem; padding: 10px 12px; }
}

@media (max-width: 575.98px) {
  .hero-title { font-size: 1.55rem; }
}

/* ═══════════════════════════════════════════════════════════
   Instagram Captions Page
   ══════════════════════════════════════════════════════════ */

/* Hero tweaks for captions page (no form/tabs) */
.captions-hero .hero-inner { padding-bottom: 48px; }

/* Search bar inside hero */
.cap-search-wrap {
  position: relative;
  max-width: 520px;
  width: 100%;
  margin: 20px auto 0;
}
.cap-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.75);
  pointer-events: none;
}
.cap-search-input {
  width: 100%;
  padding: 14px 20px 14px 46px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  backdrop-filter: blur(8px);
  transition: border-color .2s, background .2s;
}
.cap-search-input::placeholder { color: rgba(255,255,255,.55); }
.cap-search-input:focus {
  border-color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.22);
}

/* Breadcrumb */
.cap-breadcrumb { padding: 14px 16px; }
.cap-breadcrumb ol {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  color: var(--text-muted);
}
.cap-breadcrumb ol li + li::before { content: '/'; margin-right: 6px; }
.cap-breadcrumb a { color: var(--primary); text-decoration: none; }
.cap-breadcrumb a:hover { text-decoration: underline; }

/* Section headings */
.cap-section-head { text-align: center; margin-bottom: 36px; }
.cap-section-head h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 6px; }
.cap-section-head p  { color: var(--text-muted); margin: 0; }

/* Category grid */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cap-grid-sm {
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  margin-top: 40px;
}
.cap-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px 20px;
  border-radius: 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  text-align: center;
}
.cap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(124,58,237,.14);
  border-color: var(--primary-light);
  color: inherit;
}
.cap-card-emoji  { font-size: 2.2rem; line-height: 1; }
.cap-card-label  { font-weight: 700; font-size: 1rem; }
.cap-card-desc   { font-size: .875rem; color: var(--text-muted); line-height: 1.5; }
.cap-card-count  { font-size: .8rem; color: var(--primary); font-weight: 600; background: rgba(124,58,237,.08); padding: 2px 10px; border-radius: 20px; }

/* Smaller grid cards (explore more) */
.cap-grid-sm .cap-card { padding: 16px 10px; gap: 6px; }
.cap-grid-sm .cap-card-emoji { font-size: 1.6rem; }
.cap-grid-sm .cap-card-label { font-size: .88rem; }

/* Trending section */
.cap-trending-sec { background: var(--surface); }
.cap-trending-list { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin: 0 auto; }
.cap-trending-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
}
.cap-trending-text { font-size: .95rem; line-height: 1.5; flex: 1; }

/* Caption list (category page) */
.cap-cat-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.cap-cat-emoji { font-size: 3rem; line-height: 1; flex-shrink: 0; }
.cap-cat-head h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 4px; }
.cap-cat-head p  { color: var(--text-muted); margin: 0; font-size: .95rem; }

.cap-list { display: flex; flex-direction: column; gap: 10px; }
.cap-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  transition: border-color .15s, box-shadow .15s;
}
.cap-item:hover { border-color: var(--primary-light); box-shadow: 0 2px 12px rgba(124,58,237,.08); }
.cap-item-num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 50%;
  font-size: .8rem;
  font-weight: 700;
}
.cap-item-text { flex: 1; font-size: 1rem; line-height: 1.6; margin: 0; }
.cap-no-results { text-align: center; padding: 40px 0; color: var(--text-muted); font-size: 1rem; }

/* Copy button */
.cap-copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, border-color .15s, background .15s;
}
.cap-copy-btn:hover { color: var(--primary); border-color: var(--primary-light); background: rgba(124,58,237,.06); }
.cap-copy-btn.copied { color: #16a34a; border-color: #bbf7d0; background: #f0fdf4; }

/* Explore more */
.cap-other-cats { margin-top: 48px; }
.cap-other-cats h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 16px; }

/* ── Split layout (sub-category nav + captions panel) ─────── */
.cap-split-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 28px;
}
.cap-split-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  border-radius: 12px;
  background: var(--surface, #f8fafc);
  padding: 12px 8px;
  scrollbar-width: thin;
}
.cap-split-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  font-size: .9rem;
  color: var(--text, #334155);
  transition: background .15s, color .15s;
  width: 100%;
}
.cap-split-nav-item:hover { background: rgba(124,115,243,.1); color: #7c73f3; }
.cap-split-nav-item.active { background: #7c73f3; color: #fff; }
.cap-split-nav-emoji { font-size: 1.2rem; flex-shrink: 0; }
.cap-split-nav-label { flex: 1; font-weight: 500; line-height: 1.3; }
.cap-split-nav-count {
  font-size: .8rem;
  background: rgba(255,255,255,.25);
  border-radius: 20px;
  padding: 2px 7px;
  flex-shrink: 0;
}
.cap-split-nav-item:not(.active) .cap-split-nav-count {
  background: rgba(124,115,243,.12);
  color: #7c73f3;
}
.cap-split-panel { min-width: 0; }
.cap-split-panel-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border, #e2e8f0);
}
.cap-split-panel-emoji { font-size: 2.2rem; flex-shrink: 0; }
.cap-split-panel-title { font-size: 1.2rem; font-weight: 700; margin: 0 0 4px; }
.cap-split-panel-desc { font-size: .95rem; color: var(--text-muted); margin: 0; }

/* Responsive */
@media (max-width: 991.98px) {
  .cap-grid { grid-template-columns: repeat(3, 1fr); }
  .cap-split-layout { grid-template-columns: 220px 1fr; }
}
@media (max-width: 767.98px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-cat-head { flex-direction: column; text-align: center; }
  .cap-split-layout { grid-template-columns: 1fr; }
  .cap-split-nav { position: static; max-height: none; flex-direction: row; flex-wrap: wrap; overflow-x: auto; padding: 8px; }
  .cap-split-nav-item { flex-shrink: 0; width: auto; }
  .cap-split-nav-count { display: none; }
}
@media (max-width: 575.98px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cap-card { padding: 16px 10px 14px; }
  .cap-card-emoji { font-size: 1.8rem; }
  .cap-trending-item { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cap-item { flex-wrap: wrap; }
  .cap-copy-btn { width: 100%; justify-content: center; }
}
