 :root {
            --bg-color: #ffffff;
            --text-color: #1c1e21;
            --card-bg: white;
            --card-shadow: rgba(24, 119, 242, 0.15);
            --gradient-start: #1877F2;
            --gradient-mid: #166fe5;
            --gradient-end: #0d4a8c;
            --accent-color: #1877F2;
            --secondary-bg: #f0f2f5;
            --secondary-text: #65676b;
            --hover-bg: #e4e6ea;
            --border-color: #dadde1;
            --highlight-color: #1877F2;
            --success-color: #42b883;
            --success-dark: #369870;
        }
        
        .dark-mode {
            --bg-color: #18191a;
            --text-color: #e4e6ea;
            --card-bg: #242526;
            --card-shadow: rgba(24, 119, 242, 0.3);
            --gradient-start: #1877F2;
            --gradient-mid: #166fe5;
            --gradient-end: #0d4a8c;
            --secondary-bg: #3a3b3c;
            --secondary-text: #b0b3b8;
            --hover-bg: #3a3b3c;
            --border-color: #3e4042;
        }


* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}
html {
    display: flex;
    justify-content: center;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    min-width: 320px;
    overflow-x: hidden;
    max-width: 1400px;
    margin: 0 auto;
    
}

.freefire-gradient {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
}

/* STICKY HEADER */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
    will-change: transform;
}

.header-logo-link:hover {
    transform: scale(1.05);
}

.name-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px var(--card-shadow);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-color);
    will-change: transform;
    backface-visibility: hidden;
    width: 100%;
    max-width: 100%;
}

.name-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.name-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(75, 0, 130, 0.3);
}

.name-card:hover::after {
    opacity: 1;
}

.name-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 10px;
}

.name-display {
    font-size: 1.15rem;
    font-weight: 600;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.4;
    word-break: break-word;
    text-align: left;
    flex: 1;
    margin-right: 15px;
    white-space: pre-line;
    overflow-wrap: break-word;
}

.copy-btn {
    background: rgba(75, 0, 130, 0.1);
    border: 2px solid var(--gradient-start);
    color: var(--gradient-start);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.copy-btn:hover {
    background: var(--gradient-start);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(75, 0, 130, 0.3);
}

.copy-btn.copied {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
    transform: scale(1.05);
}

.copy-btn.copied:hover {
    background: var(--success-dark);
    border-color: var(--success-dark);
}

.load-more-btn {
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(75, 0, 130, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px auto 40px auto;
    position: relative;
    overflow: hidden;
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(75, 0, 130, 0.4);
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.load-more-btn .loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.load-more-btn.loading .loading-spinner {
    display: block;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.name-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    contain: layout style;
    width: 100%;
    max-width: 100%;
}

/* PC: 3 columns for better layout */
@media (min-width: 1024px) {
    .name-container {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
        margin: 0 auto;
    }
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
}

.nav-link {
    position: relative;
    font-weight: 500;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    transition: width 0.2s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.how-to-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px var(--card-shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 100%;
}

.how-to-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
}

.step-number {
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    margin-right: 14px;
    flex-shrink: 0;
    font-size: 16px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--card-bg);
    z-index: 9999;
    padding: 30px 20px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px var(--card-shadow);
}

.mobile-menu.active {
    right: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.overlay.active {
    display: block;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.faq-question {
    padding: 16px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--gradient-start);
}

.faq-answer {
    padding: 0 0 16px;
    display: none;
    line-height: 1.7;
    color: var(--secondary-text);
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-toggle i {
    transform: rotate(180deg);
}

.faq-toggle {
    background-color: var(--secondary-bg);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.faq-toggle i {
    transition: all 0.2s ease;
    color: var(--gradient-start);
}

.integrated-link {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.integrated-link:hover {
    border-bottom: 1px solid var(--gradient-start);
}

.loading-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    height: 80px;
    position: relative;
}

.pulse-gradient-loader {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    animation: pulseGradient 1.5s ease-in-out infinite;
    position: relative;
}

.pulse-gradient-loader::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    opacity: 0.4;
    animation: pulseGradientOuter 1.5s ease-in-out infinite;
}

@keyframes pulseGradient {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes pulseGradientOuter {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

.name-card-loading {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.name-card-loaded {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hero-section {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
    padding: 50px 0 70px;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.shape-1 {
    width: 120px;
    height: 120px;
    top: -40px;
    left: 10%;
}

.shape-2 {
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 15%;
}

.shape-3 {
    width: 160px;
    height: 160px;
    bottom: -60px;
    left: 30%;
}

.floating-icons {
    position: absolute;
    opacity: 0.6;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    animation: float 5s infinite ease-in-out;
}

.float-1 {
    font-size: 40px;
    top: 25px;
    right: 10%;
    animation-delay: 0.5s;
}

.float-2 {
    font-size: 32px;
    bottom: 35px;
    left: 15%;
    animation-delay: 1s;
}

.float-3 {
    font-size: 48px;
    top: 50%;
    right: 5%;
    animation-delay: 1.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(8deg);
    }
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    position: relative;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 26px;
    max-width: 650px;
}

.hero-cta {
    background: white;
    color: var(--gradient-start);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    width: 100%;
    max-width: 100%;
}

.input-wrapper:focus-within {
    border-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    background: white;
}

.input-icon {
    color: rgba(75, 0, 130, 0.7);
    margin-left: 16px;
    margin-right: 10px;
    font-size: 1rem;
    flex-shrink: 0;
}

.generator-input {
    background: transparent;
    border: none;
    padding: 14px 0;
    font-size: 1rem;
    width: 100%;
    color: var(--gradient-start);
    outline: none;
    flex: 1;
    min-width: 0;
}

.generator-input::placeholder {
    color: rgba(75, 0, 130, 0.6);
}

.clear-btn {
    color: rgba(75, 0, 130, 0.7);
    margin-right: 16px;
    cursor: pointer;
    font-size: 1rem;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s ease;
    opacity: 0;
    visibility: hidden;
    flex-shrink: 0;
}

.clear-btn.show {
    opacity: 1;
    visibility: visible;
}

.clear-btn:hover {
    color: var(--gradient-start);
    background: rgba(75, 0, 130, 0.1);
}

/* ENHANCED CATEGORY TABS - CENTERED LAYOUT */
.category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    justify-content: center;
    /* CENTER ALL TABS */
    width: 100%;
    max-width: 100%;
}

.category-tab {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 8px 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--gradient-start);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    user-select: none;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-tab:hover {
    background: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(75, 0, 130, 0.15);
    text-decoration: none;
    color: var(--gradient-start);
}

.category-tab.active {
    background: white;
    color: var(--gradient-start);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(75, 0, 130, 0.2);
}

.category-tab i {
    font-size: 0.9rem;
    margin-right: 2px;
    flex-shrink: 0;
}

.theme-toggle {
    background: var(--card-bg);
    color: var(--text-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.theme-toggle:hover {
    background: var(--hover-bg);
}

.hero-generator {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 26px;
    margin-top: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
}

.hero-generator h3 {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 18px;
    text-align: center;
}

.header-text-animation {
    background-image: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gradient-start);
}

.article-image {
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    transition: transform 0.3s ease;
    display: block;
}

.article-image:hover {
    transform: scale(1.02);
}

#what-are-stylish-names {
    padding-top: 30px !important;
}

#how-to-use {
    padding-top: 30px !important;
}

#name-categories {
    padding-top: 30px !important;
}

#faq {
    padding-top: 30px !important;
}

/* IMPROVED RESPONSIVE DESIGN */
.container {
    width: 100%;
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-section {
        padding: 40px 0 50px;
    }

    .name-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hero-generator {
        padding: 18px;
        margin-top: 24px;
    }

    .category-tabs {
        gap: 6px;
        justify-content: center;
        /* MAINTAIN CENTER ON MOBILE */
        flex-wrap: wrap;
        /* ALLOW WRAPPING ON MOBILE */
        padding-bottom: 5px;
    }

    .category-tab {
        font-size: 0.75rem;
        padding: 6px 10px;
        min-height: 34px;
        gap: 4px;
    }

    .category-tab i {
        font-size: 0.8rem;
    }

    .copy-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    #what-are-stylish-names {
        padding-top: 20px !important;
    }

    #how-to-use {
        padding-top: 20px !important;
    }

    #name-categories {
        padding-top: 20px !important;
    }

    #faq {
        padding-top: 20px !important;
    }

    .mobile-menu {
        width: 85%;
    }

    .name-display {
        font-size: 1rem;
        margin-right: 10px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .name-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .category-tab {
        font-size: 0.7rem;
        padding: 5px 8px;
        min-height: 32px;
    }

    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .name-card {
        padding: 16px;
    }

    .copy-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .hero-generator {
        padding: 16px;
    }
}

.name-card {
    contain: layout style;
}

.hero-section {
    contain: layout;
}

.copy-btn:focus {
    outline: 2px solid var(--gradient-start);
    outline-offset: 2px;
}

.category-tab:focus {
    outline: 2px solid var(--gradient-start);
    outline-offset: 2px;
}

.generator-input:focus {
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.footer-line {
    display: none;
}

/* SECURITY ENHANCEMENT - CONTENT FILTERING */
.filtered-content {
    filter: blur(0px);
}

/* ENSURE SAFE CONTENT DISPLAY */
.name-display {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* 1. Main Section Class */
.what-are-facebook-bio-section {
  padding: 2.5rem 0 !important;
  margin: 0 !important;
}

.what-are-facebook-bio-section .text-center {
  margin-bottom: 2rem !important;
}

.what-are-facebook-bio-section .section-title {
  margin-bottom: 1rem !important;
}

/* 2. Contact Info Box */
.contact-info-box {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 20px;
  margin: 20px 0;
  border: 2px solid var(--gradient-start);
  box-shadow: 0 8px 25px rgba(24, 119, 242, 0.15);
  text-align: center;
}

.contact-info-box h4 {
  color: var(--gradient-start);
  font-weight: 600;
  margin-bottom: 10px;
}

.contact-info-box p {
  color: var(--text-color);
  margin: 5px 0;
}

/* 3. Responsive Mobile */
@media (max-width: 768px) {
  .what-are-facebook-bio-section {
    padding: 2rem 0 !important;
  }
  
  .what-are-facebook-bio-section .text-center {
    margin-bottom: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .what-are-facebook-bio-section {
    padding: 1.5rem 0 !important;
  }
  
  .contact-info-box {
    padding: 16px;
    margin: 16px 0;
  }
}
