:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg-body: #f8fafc;
    --header-bg: #fcfcfd;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --white: #ffffff;
    --danger: #ef4444;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
}

/* --- SITE HEADER --- */
.site-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 2000;
    backdrop-filter: blur(8px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
}

.logo span { color: var(--primary); }

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    margin-left: 2rem;
    transition: 0.2s;
}

.nav-link:hover { color: var(--primary); }

.nav-btn {
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 2rem;
    transition: 0.2s;
}

.nav-btn:hover { background: var(--primary-hover); transform: translateY(-1px); }

/* --- TOOL LAYOUT --- */
.app-wrapper {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 1.5rem;
}

.tool-container {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    overflow: hidden;
}

.tool-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 20px;
}

.stat-item {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.stat-item span {
    display: block;
    font-size: 1.4rem;
    color: var(--primary);
    margin-top: 4px;
}

.top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

/* --- MAIN CONTENT --- */
.main-content {
    display: grid;
    grid-template-columns: 1fr 340px;
}

textarea {
    width: 100%;
    height: 600px;
    padding: 30px;
    border: none;
    font-size: 1.15rem;
    color: var(--text-main);
    line-height: 1.7;
    outline: none;
    resize: none;
    font-family: inherit;
}

/* --- SIDEBAR --- */
.sidebar {
    background: #fafafa;
    padding: 24px;
    border-left: 1px solid var(--border);
}

.ad-container {
    background: #f1f5f9;
    border-radius: 12px;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #cbd5e1;
    margin-bottom: 30px;
}

.ad-label { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }

.keyword-section h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.keyword-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

/* --- BUTTONS --- */
button {
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    border: none;
    font-size: 14px;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); }

.btn-danger { background: #fee2e2; color: var(--danger); }
.btn-danger:hover { background: #fecaca; }

.btn-util { background: #f1f5f9; color: var(--text-main); }
.btn-util:hover { background: #e2e8f0; }

.secondary-btn { background: #f1f5f9; color: var(--text-muted); font-size: 16px; }
.secondary-btn:hover { background: #e2e8f0; color: var(--text-main); }

.divider { width: 1px; height: 24px; background: var(--border); margin: 0 8px; }
button:disabled { opacity: 0.3; cursor: not-allowed; }

/* --- FOOTER --- */
.site-footer {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-top: 1px solid var(--border);
    margin-top: 80px;
}

.footer-links { margin-bottom: 20px; }
.footer-links a { margin: 0 15px; text-decoration: none; color: var(--text-muted); font-size: 14px; transition: 0.2s; }
.footer-links a:hover { color: var(--primary); }

/* --- MOBILE HAMBURGER --- */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; }
.hamburger .bar { width: 22px; height: 2px; background: var(--text-main); border-radius: 4px; transition: 0.3s; }

/* --- RESPONSIVE --- */
@media (max-width: 1000px) {
    .main-content { grid-template-columns: 1fr; }
    .sidebar { border-left: none; border-top: 1px solid var(--border); }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border);
    }
    .nav-menu.active { display: flex; }
    .nav-link, .nav-btn { margin: 10px 0; text-align: center; }
    .top-actions { justify-content: space-between; width: 100%; flex-wrap: wrap; }
    .stats-grid { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
}
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg-body: #f8fafc;
    --header-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; scroll-behavior: smooth; }

body { font-family: 'Inter', sans-serif; background: var(--bg-body); color: var(--text-main); }

/* Header */
.site-header { background: var(--header-bg); border-bottom: 1px solid var(--border); padding: 15px 0; position: sticky; top: 0; z-index: 1000; }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.logo { font-size: 1.5rem; font-weight: 800; text-decoration: none; color: var(--text-main); }
.logo span { color: var(--primary); }
.nav-link { text-decoration: none; color: var(--text-muted); margin-left: 20px; font-weight: 500; }
.nav-btn { background: var(--primary); color: #fff; padding: 8px 20px; border-radius: 6px; text-decoration: none; margin-left: 20px; font-weight: 600; }

/* Tool Styling */
.app-wrapper { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.tool-container { background: #fff; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 4px 6px rgba(0,0,0,0.05); overflow: hidden; }
.tool-header { padding: 30px; border-bottom: 1px solid var(--border); }
.tool-title { font-size: 1.25rem; margin-bottom: 20px; color: var(--text-muted); }

.stats-grid { display: flex; flex-wrap: wrap; gap: 30px; margin-bottom: 25px; }
.stat-item { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; }
.stat-item span { display: block; font-size: 1.5rem; color: var(--primary); margin-top: 5px; }

.top-actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; }
.divider { width: 1px; height: 30px; background: var(--border); }

/* Layout */
.main-content { display: grid; grid-template-columns: 1fr 300px; }
textarea { width: 100%; height: 500px; padding: 30px; border: none; font-size: 1.1rem; outline: none; resize: none; border-bottom: 1px solid var(--border); }
.sidebar { background: #fcfcfd; padding: 25px; border-left: 1px solid var(--border); }

/* SEO Section Styling */
.seo-content { margin-top: 60px; padding: 40px 0; border-top: 1px solid var(--border); }
.seo-content h2 { text-align: center; margin-bottom: 40px; font-size: 2rem; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.info-card { background: #fff; padding: 30px; border-radius: 10px; border: 1px solid var(--border); }
.info-card h3 { margin-bottom: 15px; color: var(--primary); }
.info-card i { margin-right: 10px; }
.long-form-text { margin-top: 50px; max-width: 800px; margin-left: auto; margin-right: auto; }
.faq-item { margin-bottom: 25px; }
.faq-item h4 { margin-bottom: 10px; font-size: 1.1rem; }

/* Mobile */
@media (max-width: 768px) {
    .main-content { grid-template-columns: 1fr; }
    .top-actions { flex-wrap: wrap; justify-content: center; }
    .hamburger { display: block; }
}

/* (Include previous button and utility styles here) */
button { cursor: pointer; border: none; border-radius: 6px; padding: 10px 15px; font-weight: 600; transition: 0.2s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-danger { background: #fee2e2; color: #ef4444; }
.btn-util { background: #f1f5f9; color: var(--text-main); }
.secondary-btn { background: #f1f5f9; color: var(--text-muted); }
/* COMMENT TICKER ANIMATION */
.comment-ticker {
    background: #4f46e5;
    color: white;
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    border-bottom: 2px solid #4338ca;
}

.ticker-wrapper {
    display: inline-block;
}

.ticker-content {
    display: inline-block;
    animation: scroll-left 40s linear infinite;
}

.comment {
    margin: 0 50px;
    font-size: 14px;
    font-weight: 500;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pause on hover to let users read */
.comment-ticker:hover .ticker-content {
    animation-play-state: paused;
}

/* SEO ARTICLE STYLING */
.seo-article {
    max-width: 800px;
    margin: 60px auto;
    line-height: 1.8;
    color: #334155;
}

.seo-article h2 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 20px;
    border-left: 5px solid #4f46e5;
    padding-left: 15px;
}

.seo-article h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-top: 40px;
    margin-bottom: 15px;
}

.seo-article p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.seo-article ul {
    background: #f1f5f9;
    padding: 30px 50px;
    border-radius: 12px;
    margin: 30px 0;
}

.seo-article li {
    margin-bottom: 10px;
}

/* Tool Area spacing adjustments */
.app-wrapper {
    padding-top: 20px;
}