.font-styles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

@media (max-width: 768px) {
    .font-styles-grid {
        grid-template-columns: 1fr;
    }
}

.font-style-card {
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
    transition: box-shadow 0.2s;
}

.font-style-card:hover {
    box-shadow: 0 4px 18px rgba(225, 48, 108, 0.12);
}

.font-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.font-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gradient-start);
    background: rgba(225, 48, 108, 0.10);
    border-radius: 6px;
    padding: 3px 10px;
}

.copy-font-btn {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: transform 0.15s, background 0.2s;
}

.copy-font-btn:hover {
    transform: scale(1.05);
}

.copy-font-btn.copied {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.font-preview {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    word-break: break-all;
    min-height: 32px;
}

/* =============================================
   FONT GENERATOR SECTION
   ============================================= */

#font-generator {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* ---- Input Wrapper ---- */
.font-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    position: relative;
}

.font-input-wrap input {
    width: 100%;
    padding: 14px 20px;
    border-radius: 14px;
    border: 2px solid var(--border-color, #f3c6d6);
    background: var(--secondary-bg, #fdf2f6);
    color: var(--text-color, #1c1e21);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.font-input-wrap input::placeholder {
    color: var(--secondary-text, #aaa);
    font-weight: 400;
}

.font-input-wrap input:focus {
    border-color: var(--gradient-start, #E1306C);
    box-shadow: 0 0 0 3px rgba(225, 48, 108, 0.13);
}

/* ---- Font Cards Grid ---- */
.font-styles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 10px;
}

@media (min-width: 640px) {
    .font-styles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .font-styles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---- Individual Font Card ---- */
.font-card {
    background: var(--secondary-bg, #fdf2f6);
    border: 1.5px solid var(--border-color, #f3c6d6);
    border-radius: 14px;
    padding: 16px 18px;
    position: relative;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    cursor: default;
    min-height: 72px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.font-card:hover {
    box-shadow: 0 4px 18px rgba(225, 48, 108, 0.12);
    transform: translateY(-2px);
}

/* Font style label (top-left badge) */
.font-card-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gradient-start, #E1306C);
    background: rgba(225, 48, 108, 0.10);
    border-radius: 6px;
    padding: 2px 10px;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    width: fit-content;
}

/* The actual styled text output */
.font-card-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color, #1c1e21);
    word-break: break-word;
    padding-right: 70px;
    flex: 1;
}

/* Copy button inside each font card */
.font-card-copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--gradient-start, #E1306C), var(--gradient-mid, #c13584));
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.81rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background 0.2s ease, transform 0.15s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.font-card-copy-btn:hover {
    background: linear-gradient(135deg, var(--gradient-mid, #c13584), var(--gradient-start, #E1306C));
    transform: scale(1.05);
}

.font-card-copy-btn.copied {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

/* Empty / placeholder state */
.font-styles-empty {
    text-align: center;
    color: var(--secondary-text, #aaa);
    font-size: 0.96rem;
    padding: 24px 0 8px;
    grid-column: 1 / -1;
}

/* ---- Dark Mode ---- */
html.dark-mode .font-input-wrap input {
    background: #2a1d26;
    color: #f0e0e8;
    border-color: #5a3242;
}

html.dark-mode .font-input-wrap input::placeholder {
    color: #8a6070;
}

html.dark-mode .font-card {
    background: #2a1d26;
    border-color: #5a3242;
    color: #f0e0e8;
}

html.dark-mode .font-card-text {
    color: #f0e0e8;
}

/* ---- Mobile tweaks ---- */
@media (max-width: 520px) {
    .font-input-wrap input {
        font-size: 0.95rem;
        padding: 12px 16px;
    }

    .font-card {
        padding: 14px 14px;
    }

    .font-card-text {
        font-size: 1rem;
        padding-right: 60px;
    }

    .font-card-copy-btn {
        padding: 5px 10px;
        font-size: 0.78rem;
    }
}


:root {
    --bg-color: #ffffff;
    --text-color: #1c1e21;
    --card-bg: #ffffff;
    --card-shadow: rgba(225, 48, 108, 0.15);

    /* Instagram pink/red as primary gradient */
    --gradient-start: #E1306C;
    --gradient-mid:   #c13584;
    --gradient-end:   #833ab4;

    --accent-color:    #E1306C;
    --secondary-bg:    #fdf2f6;
    --secondary-text:  #65676b;
    --hover-bg:        #f9e0ea;
    --border-color:    #f3c6d6;
    --highlight-color: #E1306C;
    --success-color:   #42b883;
    --success-dark:    #369870;
}

html.dark-mode {
    --bg-color:      #18191a;
    --text-color:    #f0e0e8;
    --card-bg:       #2a1d26;
    --card-shadow:   rgba(225, 48, 108, 0.30);

    --gradient-start: #e8437a;
    --gradient-mid:   #d44ea0;
    --gradient-end:   #a966d6;

    --accent-color:   #e8437a;
    --secondary-bg:   #22181e;
    --secondary-text: #c9a8b6;
    --hover-bg:       #3a2530;
    --border-color:   #5a3242;
    --highlight-color: #e8437a;
    --success-color:  #42b883;
    --success-dark:   #369870;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--bg-color) 0%, rgba(24, 119, 242, 0.05) 100%);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
    min-width: 320px;
    overflow-x: hidden;
    margin: 0;
    padding: 0;

}

.facebook-gradient {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
}

.main-wrapper {
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
        padding: 0 1.5rem;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
        padding: 0 2rem;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1400px;
        padding: 0 2.5rem;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1600px;
        padding: 0 3rem;
    }
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.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;
}

.header-logo-link:hover {
    transform: scale(1.05);
}

.bio-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: 2px solid transparent;
    width: 100%;
}

.bio-card::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));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(24, 119, 242, 0.4);
}

.bio-card:hover::before {
    opacity: 1;
}

.bio-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 12px;
}

.bio-display {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
    word-break: break-word;
    text-align: left;
    flex: 1;
    margin-right: 14px;
    white-space: pre-line;
    overflow-wrap: break-word;
}

.copy-btn {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
    border: none;
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    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;
    box-shadow: 0 6px 15px rgba(24, 119, 242, 0.3);
}

.copy-btn:hover {
    background: linear-gradient(135deg, var(--gradient-mid), var(--gradient-end));
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.5);
}

.copy-btn.copied {
    background: linear-gradient(135deg, var(--success-color), var(--success-dark));
    transform: scale(1.02);
}

.load-more-btn {
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    color: white;
    border: none;
    padding: 16px 35px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 30px auto 50px auto;
    position: relative;
    overflow: hidden;
    min-width: 280px;
}

.load-more-btn:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 45px rgba(24, 119, 242, 0.6);
}

.load-more-btn:active {
    transform: translateY(-3px) scale(1.01);
    transition: all 0.1s ease;
}

.load-more-btn.loading {
    pointer-events: none;
    opacity: 0.9;
    transform: scale(0.98);
}

.bio-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    width: 100%;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .bio-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .bio-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }
}

@media (min-width: 1280px) {
    .bio-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1536px) {
    .bio-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 26px;
    }
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 10px;
    font-size: 1.7rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    border-radius: 2px;
}

.nav-link {
    position: relative;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.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%;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 90%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--card-bg);
    z-index: 9999;
    padding: 30px 20px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px 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;
}

.modern-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    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;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hero-section {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 30%, var(--gradient-end) 70%, #0d4a8c 100%);
    padding: 50px 0 70px;
    position: relative;
    overflow: hidden;
    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%;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 120px;
    height: 120px;
    top: -40px;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 160px;
    height: 160px;
    bottom: -60px;
    left: 30%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.hero-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.0rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    max-width: 700px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.sticky-input-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 242, 245, 0.95) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid rgba(24, 119, 242, 0.2);
    padding: 22px 18px;
    box-shadow: 0 -8px 32px rgba(24, 119, 242, 0.15), 0 -4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    animation: slideUp 0.5s ease-out;
}

.dark-mode .sticky-input-wrapper {
    background: linear-gradient(145deg, rgba(36, 37, 38, 0.98) 0%, rgba(58, 59, 60, 0.95) 100%);
    border-top: 1px solid rgba(24, 119, 242, 0.3);
    box-shadow: 0 -8px 32px rgba(24, 119, 242, 0.25), 0 -4px 16px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.premium-input-container {
    max-width: 750px;
    margin: 0 auto;
    position: relative;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid var(--gradient-start);
    border-radius: 18px;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    width: 100%;
    box-shadow: 0 12px 45px rgba(24, 119, 242, 0.15), 0 6px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 18px;
}

.input-wrapper:focus-within {
    transform: translateY(-6px);
    border-color: var(--gradient-mid);
    box-shadow: 0 20px 65px rgba(24, 119, 242, 0.25), 0 10px 25px rgba(0, 0, 0, 0.12);
}

.dark-mode .input-wrapper {
    background: rgba(58, 59, 60, 0.95);
    border-color: var(--gradient-start);
}

.dark-mode .input-wrapper:focus-within {
    border-color: var(--gradient-mid);
}

.input-icon {
    color: var(--gradient-start);
    margin-left: 22px;
    margin-right: 16px;
    font-size: 1.4rem;
    flex-shrink: 0;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within .input-icon {
    opacity: 1;
    transform: scale(1.2);
    color: var(--gradient-mid);
}

.generator-input {
    background: transparent;
    border: none;
    padding: 22px 120px 22px 0;
    font-size: 1.15rem;
    font-weight: 500;
    width: 100%;
    color: var(--text-color);
    outline: none;
    flex: 1;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
}

.generator-input::placeholder {
    color: rgba(24, 119, 242, 0.6);
    font-weight: 400;
    transition: all 0.3s ease;
}

.generator-input:focus::placeholder {
    color: rgba(24, 119, 242, 0.4);
    transform: translateX(4px);
}

.dark-mode .generator-input {
    color: var(--text-color);
}

.dark-mode .generator-input::placeholder {
    color: rgba(24, 119, 242, 0.7);
}

.input-actions {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}

.paste-btn,
.clear-btn {
    color: white;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
    border: none;
    cursor: pointer;
    padding: 12px 18px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 6px 15px rgba(24, 119, 242, 0.3);
}

.paste-btn {
    opacity: 1;
    visibility: visible;
}

.clear-btn {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) scale(0.8);
    position: absolute;
    right: 0;
    top: 50%;
}

.clear-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}

.paste-btn:hover,
.clear-btn:hover {
    background: linear-gradient(135deg, var(--gradient-mid), var(--gradient-end));
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}

.share-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    gap: 14px;
}

.social-share-container {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.whatsapp-btn {
    background: linear-gradient(145deg, #25d366, #20b358);
}

.facebook-btn {
    background: linear-gradient(145deg, #1877F2, #166fe5);
}

.instagram-btn {
    background: linear-gradient(145deg, #e4405f, #c13584, #833ab4);
}

.telegram-btn {
    background: linear-gradient(145deg, #0088cc, #006ba6);
}

.reddit-btn {
    background: linear-gradient(145deg, #ff4500, #e63900);
}

/* HERO SECTION CATEGORY TABS */
.hero-category-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.hero-category-tab {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--gradient-start);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    user-select: none;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
    flex-shrink: 0;
}

.hero-category-tab:hover {
    background: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(24, 119, 242, 0.2);
    text-decoration: none;
    color: var(--gradient-start);
}

.hero-category-tab.active {
    background: white;
    color: var(--gradient-start);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.hero-category-tab i {
    font-size: 0.8rem;
    margin-right: 3px;
    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);
}

/* MENU BUTTON - SAME STYLE AS THEME TOGGLE */
.menu-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* HIDE MENU BUTTON ON PC/DESKTOP */
@media (min-width: 768px) {
    .menu-btn {
        display: none !important;
    }
}

.menu-btn:hover {
    background: var(--hover-bg);
}

.menu-icon {
    width: 18px;
    height: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-line {
    width: 100%;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s ease;
}

.hero-generator {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 18px;
    padding: 22px;
    margin-top: 28px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.hero-generator h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.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: 2.4rem;
    margin-bottom: 1rem;
    color: var(--gradient-start);
}

.popular-categories-container {
    background: var(--card-bg);
    border-radius: 18px;
    padding: 26px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px var(--card-shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    width: 100%;
    text-decoration: none;
    display: block;
    text-align: center;
    min-height: 150px;
    cursor: pointer;
}

.popular-categories-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
}

.popular-categories-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(24, 119, 242, 0.3);
    text-decoration: none;
}

.popular-categories-container .feature-icon {
    font-size: 3rem;
    margin-bottom: 1.2rem;
}

.popular-categories-container p {
    font-size: 1rem;
    font-weight: 600;
}

.how-to-container {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 18px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px var(--card-shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    width: 100%;
    text-decoration: none;
    display: block;
}

.how-to-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
}

.how-to-container:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(24, 119, 242, 0.3);
    text-decoration: none;
}

.step-number {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    margin-right: 14px;
    flex-shrink: 0;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.article-image {
    border-radius: 14px;
    box-shadow: 0 8px 25px 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.03);
}

.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;
}

.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: 30px;
    height: 30px;
    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);
}

.footer-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin: 2.5rem 0 1.2rem 0;
}

/* Default preview message */
.preview-message {
    text-align: center;
    padding: 40px 20px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--card-shadow);
    border: 2px dashed var(--border-color);
    margin: 20px auto;
    max-width: 600px;
}

.preview-message h3 {
    color: var(--gradient-start);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.preview-message p {
    color: var(--secondary-text);
    font-size: 0.95rem;
}

.bio-card-loading {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    animation: cardSlideIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes cardSlideIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-section {
        padding: 40px 0 50px;
    }

    .bio-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hero-generator {
        padding: 16px;
        margin-top: 20px;
    }

    .hero-category-tabs {
        gap: 3px;
    }

    .hero-category-tab {
        font-size: 0.7rem;
        padding: 6px 10px;
        min-height: 32px;
        gap: 4px;
    }

    .hero-category-tab i {
        font-size: 0.65rem;
    }

    .copy-btn {
        padding: 10px 14px;
        font-size: 0.8rem;
    }

    .mobile-menu {
        width: 85%;
    }

    .bio-display {
        font-size: 1rem;
        margin-right: 10px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .sticky-input-wrapper {
        padding: 18px 14px;
    }

    .generator-input {
        font-size: 1.05rem;
        padding: 18px 100px 18px 0;
    }

    .share-btn {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .social-share-container {
        gap: 10px;
    }



    .paste-btn,
    .clear-btn {
        padding: 10px 14px;
        font-size: 0.8rem;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .popular-categories-container .feature-icon {
        font-size: 2.4rem;
    }

    .popular-categories-container {
        min-height: 130px;
        padding: 20px;
    }

    .how-to-container {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .bio-container {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .hero-category-tab {
        font-size: 0.65rem;
        padding: 5px 8px;
        min-height: 30px;
    }

    .container {
        padding: 0 1rem;
    }

    .bio-card {
        padding: 16px;
    }

    .copy-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .hero-generator {
        padding: 14px;
    }

    .hero-generator h3 {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .sticky-input-wrapper {
        padding: 16px 10px;
    }

    .generator-input {
        font-size: 1rem;
        padding: 16px 90px 16px 0;
    }

    .input-icon {
        margin-left: 18px;
        margin-right: 12px;
        font-size: 1.2rem;
    }

    .paste-btn,
    .clear-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .share-btn {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .social-share-container {
        gap: 8px;
    }



    .feature-icon {
        font-size: 1.8rem;
    }

    .popular-categories-container .feature-icon {
        font-size: 2.2rem;
    }

    .popular-categories-container {
        min-height: 110px;
        padding: 16px;
    }

    .how-to-container {
        padding: 14px;
    }
}



  .bio-generator-box {
            background: var(--card-bg, #fff);
            border-radius: 20px;
            padding: 32px 28px;
            box-shadow: 0 8px 32px rgba(225, 48, 108, 0.10);
            border: 1.5px solid var(--border-color, #f3c6d6);
            max-width: 1200px;
            margin: 0 auto;
        }

        .bio-generator-box h3 {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--gradient-start, #E1306C);
            margin-bottom: 22px;
            text-align: center;
        }

        .dropdown-row {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
            justify-content: center;
            margin-bottom: 20px;
        }

        .styled-select-wrapper {
            position: relative;
            flex: 1;
            min-width: 180px;
        }

        .styled-select-wrapper .select-icon {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: #E1306C;
            font-size: 1rem;
            pointer-events: none;
            z-index: 1;
        }

        .styled-select-wrapper .select-arrow {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: #E1306C;
            font-size: 0.85rem;
            pointer-events: none;
            z-index: 1;
        }

        .styled-select {
            width: 100%;
            padding: 12px 40px 12px 40px;
            border-radius: 12px;
            border: 2px solid #f3c6d6;
            background: var(--secondary-bg, #fff4f8);
            color: var(--text-color, #222);
            font-family: 'Poppins', sans-serif;
            font-size: 0.97rem;
            font-weight: 500;
            appearance: none;
            -webkit-appearance: none;
            cursor: pointer;
            transition: border-color 0.2s, box-shadow 0.2s;
            outline: none;
        }

        .styled-select:focus {
            border-color: #E1306C;
            box-shadow: 0 0 0 3px rgba(225, 48, 108, 0.13);
        }

        .generate-bio-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            width: 100%;
            padding: 14px 28px;
            border-radius: 14px;
            background: linear-gradient(135deg, #E1306C 0%, #FD1D1D 100%);
            color: #fff;
            font-size: 1.08rem;
            font-weight: 700;
            font-family: 'Poppins', sans-serif;
            border: none;
            cursor: pointer;
            box-shadow: 0 4px 18px rgba(225, 48, 108, 0.22);
            transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
            letter-spacing: 0.3px;
        }

        .generate-bio-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 28px rgba(225, 48, 108, 0.32);
            background: linear-gradient(135deg, #c2265c 0%, #E1306C 100%);
        }

        .generate-bio-btn:active {
            transform: scale(0.98);
        }

        .generate-bio-btn i {
            font-size: 1.1rem;
        }

        #generatedBioResults {
            margin-top: 28px;
            display: grid;
            grid-template-columns: 1fr;
            gap: 16px;
        }

        @media (min-width: 992px) {
            #generatedBioResults {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        #generatedBioResults .bio-result-card {
            background: var(--secondary-bg, #fff4f8);
            border: 1.5px solid var(--border-color, #f3c6d6);
            border-radius: 14px;
            padding: 16px 18px;
            position: relative;
            font-size: 0.97rem;
            line-height: 1.7;
            color: var(--text-color, #222);
            word-break: break-word;
            transition: box-shadow 0.2s;
            height: 100%;
        }

        #generatedBioResults .bio-result-card:hover {
            box-shadow: 0 4px 18px rgba(225, 48, 108, 0.10);
        }

        #generatedBioResults .copy-bio-btn {
            position: absolute;
            top: 12px;
            right: 12px;
            background: linear-gradient(135deg, #E1306C, #FD1D1D);
            color: #fff;
            border: none;
            border-radius: 8px;
            padding: 6px 14px;
            font-size: 0.82rem;
            font-weight: 600;
            cursor: pointer;
            font-family: 'Poppins', sans-serif;
            transition: background 0.2s, transform 0.15s;
        }

        #generatedBioResults .copy-bio-btn:hover {
            background: linear-gradient(135deg, #c2265c, #E1306C);
            transform: scale(1.05);
        }

        #generatedBioResults .copy-bio-btn.copied {
            background: linear-gradient(135deg, #22c55e, #16a34a);
        }

        .bio-result-label {
            display: inline-block;
            font-size: 0.75rem;
            font-weight: 600;
            color: #E1306C;
            background: rgba(225, 48, 108, 0.10);
            border-radius: 6px;
            padding: 2px 10px;
            margin-bottom: 8px;
        }

        .no-bio-msg {
            text-align: center;
            color: var(--secondary-text, #888);
            padding: 18px 0 6px;
            font-size: 0.97rem;
            grid-column: 1 / -1;
        }

        html.dark-mode .styled-select {
            background: #2a1d26;
            color: #fce7f0;
            border-color: #5a3242;
        }

        html.dark-mode .bio-generator-box {
            background: #1f1720;
            border-color: #5a3242;
        }

        html.dark-mode #generatedBioResults .bio-result-card {
            background: #2a1d26;
            border-color: #5a3242;
            color: #fce7f0;
        }

        @media (max-width: 520px) {
            .dropdown-row {
                flex-direction: column;
                gap: 12px;
            }

            .bio-generator-box {
                padding: 22px 14px;
            }
        }