        :root {
            --bg-dark: #18191a;
            --card-bg: #242526;
            --fb-blue: #1877f2;
            --text-main: #e4e6eb;
            --text-muted: #b0b3b8;
            --accent-green: #42b72a;
            --border-color: #3e4042;
        }

        body {
            background-color: var(--bg-dark);
            color: var(--text-main);
            font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
            margin: 0;
            padding: 0;
            min-height: 100vh;
        }

        /* --- NAVIGATION --- */
        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 40px;
            background: #242526;
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 10px rgba(0,0,0,0.3);
        }

        .logo {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--fb-blue);
            letter-spacing: -0.5px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .nav-links { display: flex; gap: 15px; }

        .nav-links a {
            text-decoration: none;
            color: var(--text-main);
            font-size: 0.95rem;
            font-weight: 600;
            padding: 8px 16px;
            border-radius: 6px;
            transition: background 0.2s;
            background: #3a3b3c;
        }

        .nav-links a:hover { background: #4e4f50; }
        .nav-links a.active { background: var(--fb-blue); color: white; }

        @media (max-width: 600px) {
            .navbar { padding: 10px 15px; }
            .logo span { display: none; }
            .logo::after { content: 'FB Tools'; display: block; } 
            .nav-links a { font-size: 0.8rem; padding: 6px 10px; }
        }

        /* --- MAIN LAYOUT --- */
        .main-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            max-width: 1100px;
            margin: 40px auto;
            padding: 0 20px;
        }

        @media (max-width: 900px) {
            .main-container { grid-template-columns: 1fr; }
        }

        /* --- LEFT SIDE: CONTROLS --- */
        .control-panel {
            background: var(--card-bg);
            padding: 25px;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            border: 1px solid var(--border-color);
        }

        .label {
            color: var(--text-muted);
            font-size: 0.85rem;
            margin-bottom: 8px;
            display: block;
            font-weight: 600;
        }

        input[type="text"], select {
            width: 100%;
            background: #3a3b3c;
            border: 1px solid var(--border-color);
            color: white;
            padding: 12px;
            border-radius: 8px;
            font-size: 1rem;
            margin-bottom: 20px;
            box-sizing: border-box;
            outline: none;
        }
        input:focus, select:focus { border-color: var(--fb-blue); }

        .btn-generate {
            width: 100%;
            background: var(--fb-blue);
            color: white;
            border: none;
            padding: 14px;
            font-size: 1.1rem;
            font-weight: bold;
            border-radius: 8px;
            cursor: pointer;
            transition: transform 0.1s;
            margin-bottom: 10px;
        }
        .btn-generate:hover { background: #166fe5; }
        .btn-generate:active { transform: scale(0.98); }

        /* --- TRUST/INFO SECTION (New) --- */
        .info-section { margin-top: 30px; }
        
        .info-card {
            display: flex; gap: 15px; margin-bottom: 12px;
            background: rgba(58, 59, 60, 0.5); 
            padding: 15px; border-radius: 12px;
            border: 1px solid rgba(255,255,255,0.05);
        }
        
        .info-icon { 
            font-size: 1.2rem; background: #4e4f50; width: 35px; height: 35px; 
            display: flex; align-items: center; justify-content: center; border-radius: 8px; flex-shrink: 0; 
        }

        .info-content h4 { margin: 0 0 4px 0; font-size: 0.95rem; color: #fff; }
        .info-content p { margin: 0; font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }

        /* Disclaimer Box */
        .disclaimer-box {
            background: rgba(24, 119, 242, 0.1);
            border: 1px solid rgba(24, 119, 242, 0.3);
            border-radius: 10px;
            padding: 15px;
            margin-top: 20px;
            font-size: 0.8rem;
            color: #8ab4f8;
            line-height: 1.4;
        }

        /* --- RIGHT SIDE: PREVIEW & SEO --- */
        .right-panel {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        /* SEO Score Card (Dark Theme) */
        .score-card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            color: var(--text-main);
            text-align: center;
            padding: 25px;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }
        
        .circle-wrap {
            position: relative;
            width: 100px;
            height: 100px;
            margin: 0 auto 15px;
            border-radius: 50%;
            background: conic-gradient(var(--fb-blue) 0%, #3a3b3c 0%);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 1s ease-out;
        }
        
        .circle-inner {
            width: 80px;
            height: 80px;
            background: var(--card-bg); /* Match card bg */
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--fb-blue);
        }

        /* FB Post Preview */
        .fb-post-card {
            background: var(--card-bg);
            border-radius: 8px;
            border: 1px solid var(--border-color);
            overflow: hidden;
            animation: slideIn 0.5s ease;
        }
        @keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

        .fb-header { padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
        .user-pic { width: 40px; height: 40px; background: #4e4f50; border-radius: 50%; }
        .user-info h4 { margin: 0; font-size: 0.95rem; color: var(--text-main); }
        .user-info span { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
        
        .fb-content { padding: 4px 16px 16px 16px; font-size: 0.95rem; line-height: 1.5; white-space: pre-line; }
        .highlight-tags { color: var(--fb-blue); cursor: pointer; }
        .highlight-tags:hover { text-decoration: underline; }

        .fb-media-placeholder { width: 100%; height: 250px; background: #18191a; display: flex; align-items: center; justify-content: center; color: #4e4f50; font-weight: bold; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
        .fb-actions { display: flex; justify-content: space-between; padding: 8px 16px; color: var(--text-muted); font-size: 0.9rem; font-weight: 600; }
        .action-btn { cursor: pointer; padding: 6px 12px; border-radius: 4px; }
        .action-btn:hover { background: #3a3b3c; }

/* ================= SEO CONTENT ================= */

.seo-section {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 20px;
}

.seo-section h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.seo-section h3 {
  font-size: 20px;
  margin-top: 26px;
  margin-bottom: 8px;
}

.seo-section p {
  font-size: 16px;
  line-height: 1.7;
  color: #d1d5db;
}

/* ================= FAQ ================= */

.faq-section {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 20px;
}

.faq-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
}

.faq-item {
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question .icon {
  font-size: 26px;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  padding: 0 24px 24px;
  color: #d1d5db;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-item.active .icon {
  transform: rotate(45deg);
}


 /* Desktop Links */
        /* --- NAVBAR LINKS FIX --- */
        .nav-menu {
            display: flex;
            gap: 20px;
            align-items: center;
        }

        /* Targeted specifically to make text visible */
        .nav-menu a {
            color: #e2e8f0 !important; /* Forces bright color */
            text-decoration: none;     /* Removes underline */
            font-size: 0.95rem;
            font-weight: 600;
            transition: all 0.3s;
            padding: 8px 12px;
            border-radius: 8px;
            opacity: 0.9;
        }

        .nav-menu a:hover {
            color: #ffffff !important; /* Pure white on hover */
            background: rgba(255, 255, 255, 0.1);
            opacity: 1;
            transform: translateY(-1px);
        }

     /* --- HAMBURGER ICON --- */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 2000; /* CRITICAL: Forces icon ABOVE the menu overlay */
    position: relative; 
    width: 30px;
    height: 20px;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    margin: 5px 0;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: white;
    border-radius: 3px;
}

/* --- MOBILE MENU FIX --- */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    /* 1. Hide Middle Bar */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    /* 2. Rotate Top Bar (X) */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: #ec4899; /* Turns Pink when open */
    }

    /* 3. Rotate Bottom Bar (X) */
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: #ec4899; /* Turns Pink when open */
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: rgba(15, 23, 42, 0.98); /* Dark solid background */
        width: 100%;
        height: 100vh; /* Full screen height */
        text-align: center;
        transition: 0.3s ease-in-out;
        padding-top: 100px; /* Pushes links down below the X */
        z-index: 1500; /* Lower than hamburger (2000) */
        box-shadow: none;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        display: block;
        padding: 20px 0;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        color: white !important;
    }
}

/* --- FACEBOOK VIRAL HEADING --- */
.fb-viral-heading {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    margin: 40px 0 20px 0;
    line-height: 1.2;
    
    /* Unique "Facebook Electric" Gradient */
    background: linear-gradient(to right, #1877F2, #06b6d4, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    letter-spacing: -1px;
}

/* Mobile Adjustment */
@media (max-width: 600px) {
    .fb-viral-heading {
        font-size: 2rem;
        padding: 0 10px;
    }
}
/* ================= FACEBOOK SEO CONTENT ================= */

.fb-seo-section {
  margin: 80px 0 60px;
  padding: 0 20px;
}

.fb-seo-box {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(
    180deg,
    rgba(30, 41, 59, 0.55),
    rgba(15, 23, 42, 0.85)
  );
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 46px 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

/* Headings */
.fb-seo-box h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 22px;
  background: linear-gradient(to right, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fb-seo-box h2 {
  font-size: 1.6rem;
  margin-top: 40px;
  margin-bottom: 14px;
  color: #ffffff;
}

.fb-seo-box h3 {
  font-size: 1.15rem;
  margin-top: 28px;
  margin-bottom: 10px;
  color: #e2e8f0;
}

/* Paragraphs */
.fb-seo-box p {
  font-size: 1rem;
  line-height: 1.8;
  color: #cbd5e1;
  margin-bottom: 16px;
}

/* Mobile polish */
@media (max-width: 600px) {
  .fb-seo-box {
    padding: 32px 22px;
  }

  .fb-seo-box h1 {
    font-size: 2rem;
  }
}

/* --- FOOTER STYLES --- */
footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Subtle top line */
    background-color: rgba(15, 23, 42, 0.4); /* Slight background tint */
}

footer p {
    color: #94a3b8; /* Muted text color */
    font-size: 0.9rem;
    margin: 0 0 15px 0; /* Space between copyright and links */
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px; /* Space between each link */
    flex-wrap: wrap; /* Allows links to wrap on very small screens */
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white; /* Brighten on hover */
    text-decoration: underline;
}

/* Mobile Tweak: Stack links closer if needed */
@media (max-width: 600px) {
    .footer-links {
        gap: 15px;
        font-size: 0.85rem;
    }
}
