    :root {
      --primary-color: #E1306C;
      --secondary-color: #5851DB;
      --accent-color: #405DE6;
      --background-color: #f5f5f5;
      --text-color: #333;
      --light-text-color: #fff;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html, body {
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      background: linear-gradient(180deg, var(--background-color), #fff);
      color: var(--text-color);
      line-height: 1.6;
    }

    header {
      background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
      animation: gradientShift 10s ease infinite;
      color: var(--light-text-color);
      padding: 10px;
      text-align: center;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    header h1 {
      font-size: 1.5rem;
    }

    @media (min-width: 768px) {
      header h1 {
        font-size: 1.75rem;
      }
    }

    header p {
      font-size: 1rem;
      opacity: 0.9;
    }

    @media (min-width: 768px) {
      header p {
        font-size: 1.25rem;
      }
    }
    .guide {
        display: block;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    }
    
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 2rem 0 1rem 0;
  position: relative;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* Subtle underline accent */
h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

h3.gradient-text::after {
  display: none;
}
/* Responsive sizing */
@media (min-width: 768px) {
  h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1.25rem 0;
  }
}

/* Section headings variation */
h3.section-heading {
  font-size: 1.5rem;
  text-align: center;
  margin: 2rem 0 1.5rem 0;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.1), rgba(88, 81, 219, 0.1));
  border-radius: 8px;
  border: 1px solid rgba(225, 48, 108, 0.2);
}

h3.section-heading::before {
  display: none;
}

@media (min-width: 768px) {
  h3.section-heading {
    font-size: 1.75rem;
    margin: 2.5rem 0 2rem 0;
  }
}


@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.header-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 20px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 100;
  padding: 1rem;
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

nav ul li {
  margin: 0.5rem 1rem;
}

nav ul li a {
  color: var(--light-text-color);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s, color 0.3s;
}

nav ul li a:hover {
  transform: scale(1.1);
  color: #000;
}

nav#main-nav ul {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav#main-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  transition: color 0.2s;
}

nav#main-nav a:hover {
  color: var(--primary-color);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  height: 3px;
  background: var(--text-color);
  border-radius: 2px;
  transition: background 0.2s, transform 0.3s, opacity 0.3s;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 1024px) {
  .menu-toggle {
    display: flex;
  }

  nav#main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: 1rem 0;
    z-index: 100;
  }

  nav#main-nav.open {
    display: flex;
  }

  nav#main-nav ul {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1.5rem;
  }
}
nav[aria-label="Breadcrumb"] {
  margin: 1.5rem auto;
  max-width: 900px;
  padding: 0 1rem;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  color: var(--text-color);
}
nav[aria-label="Breadcrumb"] {
    margin: 1.5rem auto;
    max-width: 900px;
    padding: 0 1rem;
    font-family: 'Roboto', sans-serif;
    font-size: .9rem;
    color: var(--text-color);
}
nav[aria-label="Breadcrumb"] ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
nav[aria-label="Breadcrumb"] li {
    display: flex;
    align-items: center;
}
nav[aria-label="Breadcrumb"] li + li::before {
    content: '›';
    margin: 0 .5rem;
    color: var(--text-color);
    font-weight: 400;
}
nav[aria-label="Breadcrumb"] a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color .2s;
}
nav[aria-label="Breadcrumb"] a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}
nav[aria-label="Breadcrumb"] li[aria-current="page"] {
    color: var(--text-color);
    font-weight: 600;
}
@media (max-width: 480px) {
    nav[aria-label="Breadcrumb"] {
        font-size: .8rem;
    }
    nav[aria-label="Breadcrumb"] li + li::before {
        margin: 0 .25rem;
    }
}

main {
  padding: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

section {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

section:nth-of-type(1) { animation-delay: 0s; }
section:nth-of-type(2) { animation-delay: 0.2s; }
section:nth-of-type(3) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h2 {
  font-size: 1.5rem;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 1rem;
  font-family: 'Roboto', sans-serif;
}

@media (min-width: 768px) {
  h2 {
    font-size: 1.75rem;
  }
}

h3 {
  font-size: 1.25rem;
  color: var(--text-color);
  margin-bottom: 0.75rem;
  font-family: 'Roboto', sans-serif;
}

.input-wrapper {
  position: relative;
  width: 100%;
}

#text-input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 0.75rem;
  font-size: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color)) border-box;
  border: 2px solid transparent;
  transition: box-shadow 0.3s;
  box-sizing: border-box;
}

#text-input:focus {
  outline: none;
  box-shadow: 0 0 8px rgba(64, 93, 230, 0.3);
}

#clear-input {
  position: absolute;
  right: 0.75rem;
  top: 0;
  bottom: 0;
  margin: auto 0;
  margin-top: -20px;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--text-color);
  cursor: pointer;
  display: none;
  z-index: 2;
}

#clear-input:hover {
  color: var(--primary-color);
}

.generator-controls {
  position: sticky;
  top: 0;
  background: #fff;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
  z-index: 50;
  border-bottom: 1px solid #eee;
}

.font-size-slider {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.font-size-slider label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
}

.font-size-slider input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  outline: none;
  cursor: pointer;
}

.font-size-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--light-text-color);
  border: 2px solid var(--secondary-color);
  cursor: pointer;
}

.font-size-slider input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--light-text-color);
  border: 2px solid var(--secondary-color);
  cursor: pointer;
}

.font-size-slider #font-size-value {
  width: 3.5rem;
  text-align: right;
  font-size: 0.9rem;
  color: var(--text-color);
}

#tabs {
  display: flex;
  gap: 0.5rem;
  position: relative;
  background: #f0f0f0;
  padding: 4px;
  border-radius: 8px;
  --_indicator-left: 0;
  --_indicator-width: 0;
  overflow: hidden;
}

#tabs::before {
  content: "";
  position: absolute;
  top: 4px;
  left: var(--_indicator-left);
  width: var(--_indicator-width);
  height: calc(100% - 8px);
  border-radius: 6px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  transition: left 0.3s ease, width 0.3s ease;
  z-index: 0;
}

.tab-button {
  flex: 1;
  position: relative;
  z-index: 1;
  padding: 0.75rem 0;
  background: transparent;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: color 0.3s, transform 0.2s;
}

.tab-button span {
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

.tab-button:hover {
  color: var(--primary-color);
}

.tab-button.active {
  color: var(--light-text-color);
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .tab-button {
    padding: 0.75rem 2rem;
  }
}

#subtabs {
  display: flex;
  overflow-x: auto;
  padding: 0.5rem 0;
  gap: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
}

#subtabs .subtab-button {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 0.5rem 1rem;
  background: #eee;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s, transform 0.2s;
}

#subtabs .subtab-button.active {
  background: var(--secondary-color);
  color: var(--light-text-color);
  transform: scale(1.05);
}

#subtabs .subtab-button:hover {
  background: #ddd;
}

@media (min-width: 768px) {
  .subtab-button {
    padding: 0.75rem 2rem;
  }
}

#subtabs::-webkit-scrollbar {
  height: 6px;
}

#subtabs::-webkit-scrollbar-track {
  background: transparent;
}

#subtabs::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 3px;
}

.style-item,
.symbol-item,
.recent-item {
  display: grid;
  grid-template-columns: 2fr auto auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #fff;
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow-wrap: break-word;
}

.style-item:hover,
.symbol-item:hover,
.recent-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.style-item span,
.symbol-item span,
.recent-item span {
  word-break: break-all;
  white-space: normal;
}

@media (min-width: 768px) {
  .style-item,
  .symbol-item,
  .recent-item {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .style-item,
  .symbol-item,
  .recent-item {
    grid-template-columns: 1fr auto auto;
  }
}

.copy-button,
.favorite-button,
.remove-button {
  width: auto;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  height: 30px;
  line-height: 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: opacity 0.3s, transform 0.2s, background 0.3s;
}

.copy-button {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: var(--light-text-color);
}

.copy-button:hover,
.favorite-button:hover {
  opacity: 0.9;
}

.copy-button:active {
  transform: scale(0.95);
}

.copy-button.copied {
  background: var(--accent-color);
}

.favorite-button {
  background-color: #fff;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-size: 1.5rem;
  color: #ccc;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.favorite-button.favorited {
  color: #E1306C;
}

.favorite-button:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 480px) {
  .copy-button,
  .favorite-button,
  .remove-button {
    margin-top: 0;
  }
}

#clear-recent {
  display: block;
  margin: 20px auto 0;
  padding: 10px 20px;
  background-color: #99007B;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#clear-recent:hover {
  background-color: #0056b3;
}

#clear-recent:active {
  background-color: #004085;
}

#recently-used {
  margin-top: 2rem;
}

.heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    margin-left: 10px;
}

#scroll-to-top {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(225, 48, 108, 0.3);
    transition: all 0.3s ease;
}

#scroll-to-top:hover {
  transform: scale(1.1);
}

/* Section containers */
.main-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin: 2rem 0 1rem 0;
    line-height: 1.2;
}

.main-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    padding: 0 1rem;
    opacity: 0.9;
}

.main-intro strong {
    color: var(--primary-color);
    font-weight: 600;
}
#how-to-use,
#what-are-insta-fonts,
#user-benefits {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border-bottom: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Section headings */
#how-to-use h2,
#what-are-insta-fonts h2,
#user-benefits h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#how-to-use h2::before,
#what-are-insta-fonts h2::before,
#user-benefits h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Section paragraphs */
#how-to-use p,
#what-are-insta-fonts p,
#user-benefits p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1.2rem;
}

/* Ordered and unordered lists */
#how-to-use ol,
#what-are-insta-fonts ol,
#user-benefits ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

#how-to-use ol li,
#what-are-insta-fonts ol li,
#user-benefits ul li {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 0.8rem;
}

/* Strong text styling */
#how-to-use strong,
#what-are-insta-fonts strong,
#user-benefits strong {
    color: var(--text-color);
    font-weight: 600;
}

/* Pro tip styling */
#how-to-use .pro-tip,
#what-are-insta-fonts .pro-tip,
#user-benefits .pro-tip {
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.1), rgba(88, 81, 219, 0.1));
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    color: var(--text-color);
}

footer {
  background: #333;
  color: var(--light-text-color);
  margin-top: 2rem;
  border-top: 4px solid transparent;
  border-image: linear-gradient(45deg, var(--primary-color), var(--secondary-color)) 1;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.footer-about .footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
  margin-bottom: 0.5rem;
  display: inline-block;
}

footer .social-icons {
  display: flex;
  gap: 1.2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

footer .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(45deg, #e91e63, #9c27b0);
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  opacity: 0.9;
}

footer .social-icon:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

@media (max-width: 480px) {
  footer .social-icons {
    justify-content: center;
  }
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--light-text-color);
  margin: 0;
}

.footer-col h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--light-text-color);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--light-text-color);
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.footer-col a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #444;
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  color: #bbb;
}

@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }
}

#how-to-use {
  margin-top: 2rem;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
}

#how-to-use h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

#how-to-use p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

#how-to-use ol {
  list-style: decimal;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

#how-to-use ol li {
  margin-bottom: 0.5rem;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: #9F1442;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

#reviews {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#reviews h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.aggregate-rating {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: #9F1442;
  font-weight: 700;
}

.reviews-carousel {
  position: relative;
  width: 100%;
  max-width: 800px;
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.carousel-track-container {
  overflow: hidden;
  flex: 1;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.4s ease;
}

.carousel-btn {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-color);
  cursor: pointer;
  padding: 0 0.75rem;
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.review-card {
  display: flex;
  align-items: flex-start;
  border-radius: 8px;
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color)) border-box;
  border: 2px solid transparent;
  padding: 1rem;
  min-width: 260px;
  box-sizing: border-box;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
  flex-shrink: 0;
}

.review-body {
  flex: 1;
}

.review-text {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-color);
}

.review-rating {
  color: transparent;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.review-comment {
  font-style: italic;
  color: #333;
  margin: 0;
}

.review-cta-button {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  text-align: center;
}

.review-cta-button:hover {
  opacity: 0.9;
}

@media (max-width: 768px) {
  #reviews {
    padding: 1rem;
  }

  #reviews h2 {
    font-size: 1.25rem;
  }

  .reviews-carousel {
    max-width: 100%;
  }

  .carousel-btn {
    font-size: 1.25rem;
    padding: 0 0.5rem;
  }
}

#preview-launcher {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  color: var(--light-text-color);
  border: none;
  border-radius: 10px 0 0 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  animation: preview-pulse 2s ease-in-out infinite;
  transition: max-width 0.3s ease, padding 0.3s ease;
}

#preview-modal .modal-content {
  max-height: 80vh;
  overflow-y: auto;
}

#preview-launcher:hover {
  animation-play-state: paused;
  transform: translateY(-50%) scale(1.05);
}

#preview-launcher .launcher-text {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 0.3s ease 0.1s, opacity 0.2s ease 0.1s;
}

#preview-launcher.expanded {
  max-width: 200px;
  padding: 0 1rem;
}

#preview-launcher.expanded .launcher-text {
  max-width: 140px;
  opacity: 1;
  margin-left: 8px;
}

@keyframes preview-pulse {
  0%, 100% {
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.6), 0 0 12px rgba(64, 93, 230, 0.4);
  }
  50% {
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 20px rgba(64, 93, 230, 0.6);
  }
}

#preview-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
}

#preview-modal .modal-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.3);
}

#preview-modal .modal-content {
  position: relative;
  background: #fff;
  width: 90%;
  max-width: 400px;
  margin: 5vh auto;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #262626;
}

#preview-modal .close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: #999;
  transition: color 0.2s;
}

#preview-modal .close-btn:hover {
  color: #333;
}

.tab-buttons {
  display: flex;
  margin: 1rem 0;
  border-bottom: 1px solid #dbdbdb;
}

.tab-btn {
  flex: 1;
  padding: 0.5rem 0;
  background: none;
  border: none;
  font-weight: 600;
  cursor: pointer;
  color: #555;
  transition: color 0.2s;
}

.tab-btn:not(.active):hover {
  color: #000;
}

.tab-panel {
  display: block;
}

.tab-panel[hidden] {
  display: none;
}

.preview-input {
  width: 100%;
  min-height: 6rem;
  border: none;
  resize: vertical;
  background: transparent;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #262626;
  padding: 0;
  margin: 0;
  outline: none;
}

.preview-info {
  background: rgba(225, 48, 108, 0.1);
  border-left: 4px solid var(--primary-color);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--text-color);
}

.preview-info p {
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 480px) {
  #preview-modal .modal-content {
    margin: 2vh auto;
    padding: 1rem;
  }
}

.avatar,
.avatar-sm {
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.insta-profile-preview {
  background: #fff;
  border: 1px solid #dbdbdb;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.profile-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.profile-header .avatar {
  width: 60px;
  height: 60px;
  margin-right: 1rem;
}

.profile-info .username {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
}

.profile-info .meta {
  font-size: 0.85rem;
  color: #8e8e8e;
}

.bio-preview {
  font-size: 0.95rem;
  line-height: 1.4;
}

.insta-post-preview {
  background: #fff;
  border: 1px solid #dbdbdb;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.post-header {
  display: flex;
  align-items: center;
  padding: 0.75rem;
}

.post-header .avatar-sm {
  width: 32px;
  height: 32px;
  margin-right: 0.75rem;
}

.post-user {
  font-weight: 600;
  font-size: 0.95rem;
  flex-grow: 1;
}

.post-menu {
  font-size: 1.25rem;
  line-height: 1;
  color: #262626;
  cursor: pointer;
}

.post-image {
  background: #eee;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8e8e8e;
  font-size: 1rem;
}

.post-actions {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
}

.post-actions .icon {
  font-size: 1.2rem;
  margin-right: 0.75rem;
  cursor: pointer;
}

.post-actions .right-icon .icon {
  margin-right: 0;
}

.post-caption {
  padding: 0 0.75rem 1rem;
  font-size: 0.9rem;
  line-height: 1.3;
}

.post-caption .post-user {
  margin-right: 0.5rem;
}

@media (max-width: 480px) {
  .post-image {
    height: 200px;
  }
}

.insta-bio-preview {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #262626;
}

.bio-header {
  display: flex;
  align-items: center;
  padding: 0.75rem;
}

.bio-header .back-button,
.bio-header .more-options {
  background: none;
  border: none;
  font-size: 24px;
  color: #262626;
  cursor: pointer;
}

.bio-header .bio-username {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
}

.bio-profile-info {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.bio-picture {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  margin-right: 20px;
  padding: 3px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bio-picture-inner {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bio-picture-inner svg {
  width: 50px;
  height: 50px;
}

.bio-stats {
  flex: 1;
  display: flex;
  justify-content: space-between;
  text-align: center;
}

.bio-stats .stat-number {
  font-weight: 600;
  color: #262626;
  font-size: 16px;
  margin-bottom: 2px;
}

.bio-stats .stat-label {
  color: #262626;
  font-size: 13px;
}

.bio-details {
  margin-bottom: 15px;
}

.bio-name {
  font-weight: 600;
  color: #262626;
  font-size: 14px;
  margin-bottom: 4px;
}

.bio-category {
  color: #8e8e8e;
  font-size: 14px;
  margin-bottom: 4px;
}

.bio-description p {
  color: #262626;
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 4px;
}

.bio-website {
  display: block;
  color: #00376b;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  text-decoration: none;
}

.bio-followed-by {
  color: #8e8e8e;
  font-size: 14px;
  margin-bottom: 15px;
}

.bio-followed-by a {
  color: #262626;
  font-weight: 600;
  text-decoration: none;
}

.bio-actions {
  display: flex;
  gap: 8px;
  padding: 0 0.75rem 0.75rem;
}

.bio-actions .btn {
  flex: 1;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  background-color: #efefef;
  color: #262626;
}

.bio-actions .btn-primary {
}

.bio-actions .btn-dropdown {
  flex: 0 0 auto;
  width: 32px;
  padding: 7px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.insta-post-realistic {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 1rem;
  background-color: #fff;
  border: 1px solid #dbdbdb;
  border-radius: 3px;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #262626;
}

.post-header-realistic {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
}

.post-profile {
  display: flex;
  align-items: center;
}

.post-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
}

.post-user-realistic {
  font-weight: 600;
  font-size: 14px;
  color: #262626;
  display: flex;
  align-items: center;
}

.post-user-realistic .verified {
  color: #3897f0;
  margin-left: 4px;
  font-size: 12px;
}

.post-more {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #262626;
  font-size: 16px;
}

.post-image-realistic {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  background-color: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #8e8e8e;
}

.quote-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  width: 80%;
  max-width: 300px;
}

.quote-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.quote-pic img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 8px;
}

.quote-user {
  font-size: 13px;
  font-weight: 600;
}

.quote-text {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}

.post-actions-realistic {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
}

.left-actions {
  display: flex;
  gap: 16px;
}

.action-btn,
.save-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #262626;
  font-size: 20px;
}

.post-likes {
  padding: 0 16px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.post-caption-realistic {
  padding: 0 16px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.4;
}

.view-comments-realistic {
  padding: 0 16px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #8e8e8e;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

.post-time-realistic {
  padding: 0 16px;
  margin-bottom: 16px;
  font-size: 10px;
  color: #8e8e8e;
  text-transform: uppercase;
}

.share-prompt-realistic {
  padding: 16px;
  border-top: 1px solid #efefef;
  font-size: 14px;
  color: #8e8e8e;
}

.post-hashtags-realistic {
  padding: 4px 16px 16px;
  font-size: 14px;
  color: #00376b;
  line-height: 1.4;
  word-break: break-all;
}

@media (max-width: 480px) {
  .post-image-realistic {
    padding-bottom: 75%;
  }

  .insta-bio-preview,
  .insta-post-realistic {
    max-width: 100%;
  }
}

.blog-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr 280px;
    gap: 3rem;
  }
}

.blog-article {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

.article-header {
  padding: 2.5rem 2rem 2rem;
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.1) 0%, rgba(88, 81, 219, 0.1) 50%, rgba(64, 93, 230, 0.1) 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-color);
  opacity: 0.8;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.article-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-family: 'Roboto', sans-serif;
}

.article-excerpt {
  font-size: 1.125rem;
  color: var(--text-color);
  opacity: 0.8;
  line-height: 1.6;
}

.article-content {
  padding: 2.5rem 2rem;
}

.article-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
  scroll-margin-top: 6rem;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.6s ease forwards;
}

.article-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 2rem 0 1rem;
  line-height: 1.4;
  scroll-margin-top: 6rem;
  font-family: 'Roboto', sans-serif;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.6s ease forwards;
}

.article-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 1.5rem 0 0.75rem;
  line-height: 1.4;
  scroll-margin-top: 6rem;
  font-family: 'Roboto', sans-serif;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.6s ease forwards;
}

.article-content p {
  margin-bottom: 1.5rem;
  color: var(--text-color);
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.6s ease forwards;
}

.article-content ul {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.6s ease forwards;
}

.article-content ul.no-copy li::after {
  display: none;
}

.article-content ul li {
  position: relative;
  padding: 16px 25px 16px 10px;
  margin: 8px 0;
  background: #f8f9fa;
  border-radius: 8px;
  font-weight: 400;
  color: #2c3e50;
  line-height: 1.6;
  font-size: 16px;
  border-left: 4px solid #e9ecef;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  user-select: text;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.article-content ul li:hover {
  background: #fff;
  border-left-color: #6c63ff;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(108, 99, 255, 0.15), 0 2px 4px rgba(108, 99, 255, 0.1);
}

.article-content ul li:nth-child(4n+1) {
  border-left-color: #962FBF;
}

.article-content ul li:nth-child(4n+2) {
  border-left-color: #FA7E1E;
}

.article-content ul li:nth-child(4n+3) {
  border-left-color: #D62976;
}

.article-content ul li:nth-child(4n+4) {
  border-left-color: #4F5BD5;
}

.article-content ul li:first-child {
  margin-top: 0;
}

.article-content ul li:last-child {
  margin-bottom: 0;
}

.article-content ul li::after {
  content: '📋';
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  font-size: 16px;
  pointer-events: none;
}

.article-content ul li:hover::after {
  opacity: 0.6;
}

.article-content ul li::selection {
  background: rgba(108, 99, 255, 0.2);
  color: #2c3e50;
}

.article-content ul li::-moz-selection {
  background: rgba(108, 99, 255, 0.2);
  color: #2c3e50;
}

.article-content ol {
  counter-reset: custom-counter;
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.article-content ol li {
  counter-increment: custom-counter;
  position: relative;
  padding: 0.75rem 0 0.75rem 3rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* Gradient number circles */
.article-content ol li::before {
  content: counter(custom-counter);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: var(--light-text-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(225, 48, 108, 0.3);
}
@media (max-width: 768px) {
  .article-content ol li {
    padding-left: 2.5rem;
  }
  
  .article-content ol li::before {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.8rem;
  }
}

.article-content > *:nth-child(1) { animation-delay: 0.1s; }
.article-content > *:nth-child(2) { animation-delay: 0.2s; }
.article-content > *:nth-child(3) { animation-delay: 0.3s; }
.article-content > *:nth-child(4) { animation-delay: 0.4s; }
.article-content > *:nth-child(5) { animation-delay: 0.5s; }

.copy-indicator {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #28a745;
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.copy-indicator.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.article-content ul li:focus {
  outline: 2px solid #6c63ff;
  outline-offset: 2px;
  background: #fff;
}

@media (max-width: 768px) {
  .article-content ul li:hover {
    transform: translateX(2px);
  }

  .article-content ul li::after {
    right: 8px;
    font-size: 14px;
  }

  .blog-layout {
    padding: 1rem;
  }

  .article-header {
    padding: 2rem 1.5rem 1.5rem;
  }

  .article-title {
    font-size: 1.875rem;
  }

  .article-content {
    padding: 2rem 1.5rem;
  }

  .article-content h2 {
    font-size: 1.5rem;
  }

  .article-content h3 {
    font-size: 1.25rem;
  }

  .article-meta {
    justify-content: center;
    text-align: center;
  }

  .meta-item {
    font-size: 0.8125rem;
  }
}

@media (max-width: 480px) {
  .article-content ul li::after {
    right: 6px;
    font-size: 12px;
  }
}

@media print {
  .article-content ul li {
    background: transparent !important;
    border-left: 2px solid #333 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .article-content ul li::after {
    display: none !important;
  }
}

@media (prefers-contrast: high) {
  .article-content ul li {
    border-left-width: 6px;
    font-weight: 500;
  }

  .article-content ul li:hover {
    background: #000;
    color: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-content ul li {
    transition: none;
  }

  .article-content ul li:hover {
    transform: none;
  }

  .article-content ul li::after {
    transition: none;
  }
}


 /* Desktop TOC Sidebar */
    .toc-sidebar {
      display: none;
    }

    @media (min-width: 1024px) {
      .toc-sidebar {
        display: block;
        position: sticky;
        top: 2rem;
        height: fit-content;
        max-height: calc(100vh - 4rem);
        overflow-y: auto;
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.5s ease 0.3s forwards;
      }

      .toc-card {
        background: #fff;
        border: 2px solid var(--secondary-color);
        border-radius: 8px;
        padding: 1.5rem;
        box-shadow: var(--shadow-sm);
      }

      .toc-title {
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--text-color);
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-family: 'Roboto', sans-serif;
      }

      .toc-list {
        list-style: none;
      }

      .toc-item {
        margin-bottom: 0.5rem;
      }

      .toc-link {
        display: block;
        padding: 0.5rem 0.75rem;
        color: var(--text-color);
        text-decoration: none;
        border-radius: 6px;
        font-size: 0.875rem;
        line-height: 1.4;
        transition: all 0.3s;
        border-left: 3px solid transparent;
      }

      .toc-link:hover {
        background: linear-gradient(135deg, rgba(225, 48, 108, 0.1), rgba(88, 81, 219, 0.1));
        color: var(--primary-color);
        border-left-color: var(--primary-color);
        transform: translateX(5px);
      }

      .toc-link.active {
        background: linear-gradient(135deg, rgba(225, 48, 108, 0.1), rgba(88, 81, 219, 0.1));
        color: var(--primary-color);
        border-left-color: var(--primary-color);
        font-weight: 600;
      }

      .toc-item.h3 .toc-link {
        padding-left: 1.5rem;
        font-size: 0.8125rem;
      }

      .toc-item.h4 .toc-link {
        padding-left: 2.25rem;
        font-size: 0.75rem;
      }
    }

    /* Mobile TOC Float Button */
    .mobile-toc-toggle {
      display: block;
      position: fixed;
      bottom: 2rem;
      right: 1.5rem;
      width: 56px;
      height: 56px;
      background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
      border: none;
      border-radius: 50%;
      color: var(--light-text-color);
      font-size: 1.25rem;
      cursor: pointer;
      box-shadow: var(--shadow-lg);
      z-index: 1000;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .mobile-toc-toggle:hover {
      transform: translateY(-3px) scale(1.1);
      box-shadow: 0 12px 24px rgba(225, 48, 108, 0.4);
    }

    .mobile-toc-toggle.active {
      background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
      transform: rotate(180deg);
    }

    @media (min-width: 1024px) {
      .mobile-toc-toggle {
        display: none;
      }
    }

    /* Mobile TOC Overlay */
    .mobile-toc-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.5);
      z-index: 1001;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s;
      backdrop-filter: blur(4px);
    }

    .mobile-toc-overlay.active {
      opacity: 1;
      visibility: visible;
    }

    .mobile-toc-panel {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: #fff;
      border-radius: 20px 20px 0 0;
      box-shadow: var(--shadow-lg);
      z-index: 1002;
      max-height: 70vh;
      transform: translateY(100%);
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      flex-direction: column;
      border-top: 3px solid var(--primary-color);
    }

    .mobile-toc-panel.active {
      transform: translateY(0);
    }

    .mobile-toc-header {
      padding: 1.5rem 1.5rem 1rem;
      border-bottom: 1px solid rgba(0,0,0,0.1);
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-shrink: 0;
      background: linear-gradient(135deg, rgba(225, 48, 108, 0.05) 0%, rgba(88, 81, 219, 0.05) 100%);
    }

    .mobile-toc-title {
      font-size: 1.125rem;
      font-weight: 600;
      color: var(--text-color);
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-family: 'Roboto', sans-serif;
    }

    .mobile-toc-close {
      width: 32px;
      height: 32px;
      border: 2px solid var(--secondary-color);
      background: #fff;
      border-radius: 50%;
      color: var(--secondary-color);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s;
      font-weight: bold;
    }

    .mobile-toc-close:hover {
      background: var(--secondary-color);
      color: var(--light-text-color);
      transform: scale(1.1);
    }

    .mobile-toc-content {
      padding: 1rem 1.5rem 2rem;
      overflow-y: auto;
      flex: 1;
    }

    .mobile-toc-list {
      list-style: none;
    }

    .mobile-toc-item {
      margin-bottom: 0.25rem;
    }

    .mobile-toc-link {
      display: block;
      padding: 0.75rem 1rem;
      color: var(--text-color);
      text-decoration: none;
      border-radius: 8px;
      font-size: 0.9375rem;
      line-height: 1.4;
      transition: all 0.3s;
      border-left: 3px solid transparent;
    }

    .mobile-toc-link:hover {
      background: linear-gradient(135deg, rgba(225, 48, 108, 0.1), rgba(88, 81, 219, 0.1));
      color: var(--primary-color);
      border-left-color: var(--primary-color);
      transform: translateX(5px);
    }

    .mobile-toc-link.active {
      background: linear-gradient(135deg, rgba(225, 48, 108, 0.1), rgba(88, 81, 219, 0.1));
      color: var(--primary-color);
      border-left-color: var(--primary-color);
      font-weight: 600;
    }

    .mobile-toc-item.h3 .mobile-toc-link {
      padding-left: 1.75rem;
      font-size: 0.875rem;
    }

    .mobile-toc-item.h4 .mobile-toc-link {
      padding-left: 2.5rem;
      font-size: 0.8125rem;
    }
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  z-index: 101;
}

.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  width: 0%;
  transition: width 0.1s;
}

.reading-time {
  color: var(--text-color);
  font-size: 0.875rem;
  opacity: 0.8;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.article-tag {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.1), rgba(88, 81, 219, 0.1));
  color: var(--text-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8125rem;
  text-decoration: none;
  transition: all 0.3s;
  border: 2px solid transparent;
  font-weight: 600;
}

.article-tag:hover {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: var(--light-text-color);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-buttons {
  display: none;
  justify-content: center;
  margin-top: 5px;
}

.share-buttons a {
  margin: 0 5px;
  font-size: 20px;
  color: #000;
  text-decoration: none;
}

.share-buttons a:hover {
  color: #555;
}
.caption-container {
  position: relative;
  margin: 16px 0;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 16px;
  transition: all 0.2s ease;
}

.caption-container:hover {
  border-color: #6c63ff;
  box-shadow: 0 2px 8px rgba(108, 99, 255, 0.1);
}

.caption-text {
  font-style: italic;
  color: #495057;
  margin: 0;
  padding-right: 50px;
  line-height: 1.5;
  font-size: 16px;
}

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #6c63ff;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 70px;
  justify-content: center;
}

.copy-btn:hover {
  background: #5a52d5;
  transform: translateY(-1px);
}

.copy-btn.copied {
  background: #28a745;
}

.copy-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.copy-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #333;
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s ease;
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .caption-container {
    padding: 14px;
    margin: 14px 0;
  }

  .caption-text {
    padding-right: 45px;
    font-size: 15px;
  }

  .copy-btn {
    top: 10px;
    right: 10px;
    padding: 6px 10px;
    font-size: 11px;
    min-width: 65px;
  }
}

@media (max-width: 480px) {
  .caption-container {
    padding: 12px;
  }

  .caption-text {
    padding-right: 40px;
    font-size: 14px;
  }

  .copy-btn {
    padding: 5px 8px;
    font-size: 10px;
    min-width: 60px;
  }
}

/*Internal Links*/

  /* Internal Links Styling */

.article-content a,
main a,
section a {
  position: relative;
  display: inline; /* Changed from inline-block to inline */
  color: transparent;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  text-decoration: none;
  font-weight: 600;
  padding: 1px 4px; /* Reduced padding for better inline flow */
  transition: background 0.3s ease, padding-right 0.3s ease;
  /* Add these properties for better inline behavior */
  line-height: inherit;
  vertical-align: baseline;
}

/*Bookmark Notification*/
}
.bookmark-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(8px);
            z-index: 999;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .bookmark-overlay.show {
            opacity: 1;
            visibility: visible;
        }

        /* Main banner container */
        .bookmark-banner {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.8);
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 24px;
            padding: 40px 32px 32px;
            max-width: 480px;
            width: 90vw;
            z-index: 1000;
            box-shadow: 
                0 32px 64px rgba(0, 0, 0, 0.12),
                0 16px 32px rgba(0, 0, 0, 0.08),
                0 0 0 1px rgba(255, 255, 255, 0.1);
            opacity: 0;
            visibility: hidden;
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            overflow: hidden;
        }

        .bookmark-banner.show {
            opacity: 1;
            visibility: visible;
            transform: translate(-50%, -50%) scale(1);
        }

        /* Animated gradient background */
        .bookmark-banner::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
            animation: slideIn 2s ease-out forwards;
        }

        /* Close button */
        .bookmark-close-btn {
            position: absolute;
            top: 16px;
            right: 16px;
            width: 32px;
            height: 32px;
            background: rgba(0, 0, 0, 0.06);
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            color: var(--text-color);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            opacity: 0.7;
        }

        .bookmark-close-btn:hover {
            background: rgba(0, 0, 0, 0.1);
            opacity: 1;
            transform: scale(1.1);
        }

        /* Bookmark icon */
        .bookmark-icon {
            width: 56px;
            height: 56px;
            margin: 0 auto 24px;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: float 3s ease-in-out infinite;
            box-shadow: 0 8px 32px rgba(225, 48, 108, 0.3);
        }

        .bookmark-icon svg {
            width: 28px;
            height: 28px;
            fill: white;
        }

        /* Content styling */
        .banner-title {
            font-size: 1.4rem;
            font-weight: 600;
            color: var(--text-color);
            margin-bottom: 12px;
            text-align: center;
            line-height: 1.3;
        }

        .banner-subtitle {
            font-size: 0.95rem;
            color: rgba(51, 51, 51, 0.7);
            margin-bottom: 28px;
            text-align: center;
            line-height: 1.4;
        }

        /* Steps container */
        .steps-container {
            background: rgba(245, 245, 245, 0.6);
            border-radius: 16px;
            padding: 24px;
            margin-bottom: 24px;
            position: relative;
            overflow: hidden;
        }

        .steps-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(225, 48, 108, 0.3), transparent);
        }

        .steps-title {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--text-color);
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .steps-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .step-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            margin-bottom: 12px;
            padding: 12px;
            background: rgba(255, 255, 255, 0.7);
            border-radius: 12px;
            transition: all 0.3s ease;
            animation: slideUp 0.6s ease-out forwards;
            opacity: 0;
            transform: translateY(20px);
        }

        .step-item:nth-child(1) { animation-delay: 0.2s; }
        .step-item:nth-child(2) { animation-delay: 0.4s; }

        .step-item:hover {
            background: rgba(255, 255, 255, 0.9);
            transform: translateX(4px);
        }

        .step-number {
            width: 24px;
            height: 24px;
            background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            font-weight: 600;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .step-text {
            font-size: 0.9rem;
            color: var(--text-color);
            line-height: 1.4;
        }

        /* Action buttons */
        .banner-actions {
            display: flex;
            gap: 12px;
            justify-content: center;
        }

        .bookmark-btn {
            padding: 12px 24px;
            border: none;
            border-radius: 12px;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .bookmark-btn-primary {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            box-shadow: 0 4px 16px rgba(225, 48, 108, 0.3);
        }

        .bookmark-btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(225, 48, 108, 0.4);
        }

        .bookmark-btn-secondary {
            background: rgba(0, 0, 0, 0.06);
            color: var(--text-color);
        }

        .bookmark-btn-secondary:hover {
            background: rgba(0, 0, 0, 0.1);
            transform: translateY(-1px);
        }

        /* Animations */
        @keyframes slideIn {
            to {
                left: 0;
            }
        }

        @keyframes float {
            0%, 100% {
                transform: translateY(0px);
            }
            50% {
                transform: translateY(-8px);
            }
        }

        @keyframes slideUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Responsive design */
        @media (max-width: 640px) {
            .bookmark-banner {
                padding: 32px 24px 24px;
                width: 95vw;
                border-radius: 20px;
            }

            .banner-title {
                font-size: 1.2rem;
            }

            .steps-container {
                padding: 20px;
            }

            .banner-actions {
                flex-direction: column;
            }

            .bookmark-btn {
                width: 100%;
                justify-content: center;
            }
        }