/* ═══════════════════════════════════════════════════════════
   AutoContentAI — Premium Dark Product Page + Dashboard
   ═══════════════════════════════════════════════════════════ */

/* ─── Design Tokens ──────────────────────────────────────── */
:root {
    --bg-primary: #06090f;
    --bg-secondary: #0d1117;
    --bg-card: #161b22;
    --bg-card-hover: #1c2333;
    --bg-input: #1c2333;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #484f58;
    --border: rgba(255, 255, 255, 0.06);
    --border-solid: #21262d;
    --gradient-start: #3b82f6;
    --gradient-mid: #8b5cf6;
    --gradient-end: #06b6d4;
    --sidebar-width: 256px;
    --header-height: 56px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
}

/* ─── Reset ──────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

img {
    max-width: 100%;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
}

/* ─── Utilities ──────────────────────────────────────────── */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container-sm {
    max-width: 800px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: rgba(22, 27, 34, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.glass-card:hover {
    border-color: rgba(59, 130, 246, 0.15);
    box-shadow: var(--shadow-glow);
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(16px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-8px)
    }
}

@keyframes pulse-dot-anim {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.4
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

@keyframes glow-pulse {

    0%,
    100% {
        opacity: 0.4
    }

    50% {
        opacity: 0.8
    }
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(6, 9, 15, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background 0.3s;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.logo-name {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-ai {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.lang-pill {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-family: inherit;
    cursor: pointer;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 6px;
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    padding: 160px 0 100px;
    text-align: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.12) 0%, rgba(139, 92, 246, 0.06) 40%, transparent 70%);
    pointer-events: none;
    animation: glow-pulse 4s ease-in-out infinite;
}

.hero-glow-2 {
    position: absolute;
    top: 100px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--accent-blue);
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse-dot-anim 1.5s infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero-desc {
    max-width: 620px;
    margin: 0 auto 32px;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-top: 56px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    padding: 0 32px;
}

.hero-stat strong {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stat span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-solid);
}

/* ─── Logo Bar ───────────────────────────────────────────── */
.logo-bar {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.logo-bar-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.logo-bar-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.logo-bar-logos span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.4;
    letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════ */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-badge {
    display: inline-block;
    padding: 5px 16px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-desc {
    max-width: 560px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ─── Features Grid ──────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    text-align: left;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Feature Highlight (NEW badge + glow border) */
.feature-highlight {
    position: relative;
    border-color: rgba(251, 191, 36, 0.2);
    background: rgba(22, 27, 34, 0.85);
}

.feature-highlight:hover {
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.08);
}

.feature-new-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 2px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-size: 0.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: pulse-dot-anim 2s infinite;
}

/* ─── Steps ──────────────────────────────────────────────── */
.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.step-card {
    flex: 1;
    max-width: 300px;
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 auto 16px;
}

.step-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-connector {
    padding: 40px 12px 0;
    color: var(--text-muted);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

/* ─── Pricing ────────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

.pricing-card {
    text-align: center;
    padding: 36px 28px;
    position: relative;
}

.pricing-popular {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.1);
    transform: scale(1.04);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 18px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pricing-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 6px;
}

.pricing-period {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
}

.pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.pricing-features li.disabled {
    color: var(--text-muted);
    opacity: 0.5;
}

/* ─── FAQ ────────────────────────────────────────────────── */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    padding: 18px 24px;
    cursor: pointer;
    user-select: none;
}

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.faq-arrow {
    transition: transform var(--transition);
    color: var(--text-muted);
}

.faq-item.open .faq-arrow {
    transform: rotate(90deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, margin 0.35s ease;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-item.open .faq-a {
    max-height: 300px;
    margin-top: 12px;
}

/* ─── Testimonials ───────────────────────────────────────── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.testimonial-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.testimonial-role {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ─── About & Contact ────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.about-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-values {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border);
    padding-top: 56px;
    background: var(--bg-secondary);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand {
    max-width: 280px;
}

.footer-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 12px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 56px;
}

.footer-links h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.footer-links a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 4px 0;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   LOGIN MODAL
   ═══════════════════════════════════════════════════════════ */
.login-hint {
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--accent-cyan));
    color: #fff;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.35);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-solid);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.12);
    color: var(--accent-red);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.btn-success {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-green);
}

.btn-success:hover {
    background: rgba(16, 185, 129, 0.2);
}

.btn-sm {
    padding: 7px 16px;
    font-size: 0.8rem;
    border-radius: 8px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
    border-radius: 12px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   DASHBOARD — Sidebar
   ═══════════════════════════════════════════════════════════ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-solid);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform var(--transition);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 18px 18px;
    border-bottom: 1px solid var(--border-solid);
}

.logo-text {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.sidebar-nav {
    flex: 1;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition);
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.1);
}

.nav-item.active svg {
    color: var(--accent-blue);
}

.sidebar-footer {
    padding: 14px 14px 18px;
    border-top: 1px solid var(--border-solid);
}

.lang-select {
    width: 100%;
    padding: 7px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-solid);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.78rem;
    cursor: pointer;
    outline: none;
}

/* ─── Mobile Header ──────────────────────────────────────── */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-solid);
    align-items: center;
    padding: 0 16px;
    z-index: 99;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
}

.mobile-logo {
    font-size: 1rem;
    font-weight: 700;
    margin-left: 8px;
}

/* ─── Main Content ───────────────────────────────────────── */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 28px;
    min-height: 100vh;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 10px;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.page-sub {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 3px;
}

.section-title-sm {
    font-size: 1rem;
    font-weight: 700;
    margin: 24px 0 12px;
    color: var(--text-secondary);
}

/* ─── Stats Grid ─────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 8px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
    font-weight: 600;
}

/* ─── Site Cards ─────────────────────────────────────────── */
.sites-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    transition: all var(--transition);
    animation: fadeIn 0.4s ease-out forwards;
}

.site-card:hover {
    border-color: rgba(59, 130, 246, 0.15);
    box-shadow: var(--shadow-glow);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.site-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.site-dot.running {
    background: var(--accent-green);
    animation: pulse-dot-anim 1.5s infinite;
}

.site-name {
    font-size: 0.95rem;
    font-weight: 700;
}

.site-url {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 6px;
}

.site-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.site-meta {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
}

.badge-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
}

.badge-green {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

.badge-orange {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
}

.badge-purple {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
}

.badge-cyan {
    background: rgba(6, 182, 212, 0.1);
    color: #22d3ee;
}

/* ─── Log Viewer ─────────────────────────────────────────── */
.log-viewer {
    margin-top: 10px;
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 10px 14px;
    max-height: 150px;
    overflow-y: auto;
    font-family: 'Consolas', 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.log-entry {
    white-space: pre-wrap;
    word-break: break-all;
}

.log-success {
    color: var(--accent-green);
}

.log-error {
    color: var(--accent-red);
}

.log-info {
    color: var(--accent-cyan);
}

/* ─── Generate Panel ─────────────────────────────────────── */
.generate-panel {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 18px;
    align-items: start;
}

.generate-form {
    position: sticky;
    top: 28px;
}

.generate-preview {
    min-height: 280px;
}

.preview-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    color: var(--text-muted);
}

.preview-article h1,
.preview-article h2,
.preview-article h3 {
    color: var(--text-primary);
    margin: 14px 0 6px;
}

.preview-article h1 {
    font-size: 1.3rem;
}

.preview-article h2 {
    font-size: 1.1rem;
}

.preview-article p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 8px;
    line-height: 1.7;
}

.preview-article ul,
.preview-article ol {
    padding-left: 18px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.preview-seo {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.seo-tag {
    display: inline-block;
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent-blue);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.68rem;
    margin: 2px 3px 2px 0;
}

.legal-info {
    margin-top: 10px;
    font-size: 0.68rem;
    color: var(--text-muted);
    padding: 6px 10px;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--accent-purple);
    line-height: 1.5;
}

/* ─── Forms ──────────────────────────────────────────────── */
.form-group {
    margin-bottom: 14px;
    flex: 1;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-solid);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    transition: border-color var(--transition);
}

.form-input:focus,
.form-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-row {
    display: flex;
    gap: 12px;
}

/* ─── Modal ──────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-lg);
    z-index: 201;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid var(--border-solid);
}

.modal-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 18px 22px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px 18px;
    border-top: 1px solid var(--border-solid);
}

/* ─── Toast ──────────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-card);
    border: 1px solid var(--border-solid);
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 0.85rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 500;
    max-width: 90%;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    border-left: 4px solid var(--accent-green);
}

.toast.error {
    border-left: 4px solid var(--accent-red);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

/* ─── Posts Table ─────────────────────────────────────────── */
.posts-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.posts-table th {
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-solid);
}

.posts-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.posts-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.posts-table a {
    color: var(--accent-blue);
}

.posts-table a:hover {
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr 1fr;
    }

    .generate-panel {
        grid-template-columns: 1fr;
    }

    .generate-form {
        position: static;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-solid);
        padding: 16px 24px;
        gap: 12px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }

    .hero-stat-divider {
        display: none;
    }

    .hero-stat {
        padding: 0;
        flex-direction: row;
        gap: 8px;
        align-items: center;
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .pricing-popular {
        transform: none;
    }

    .steps-grid {
        flex-direction: column;
        align-items: center;
    }

    .step-connector {
        padding: 8px 0;
        transform: rotate(90deg);
    }

    .footer-inner {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 24px;
    }

    /* Dashboard */
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .mobile-header {
        display: flex;
    }

    .main-content {
        margin-left: 0;
        padding: 14px;
        padding-top: calc(var(--header-height) + 14px);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .page-title {
        font-size: 1.2rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-actions {
        width: 100%;
    }

    .site-actions .btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .stat-card {
        padding: 12px;
    }

    .main-content {
        padding: 10px;
        padding-top: calc(var(--header-height) + 10px);
    }
}

/* ─── Intel Page ─────────────────────────────────────────── */

.intel-section {
    margin-bottom: 28px;
}

.intel-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.intel-section-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.intel-actions {
    display: flex;
    gap: 8px;
}

.intel-add-form {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.intel-add-form .form-input,
.intel-add-form .form-select {
    flex: 1;
    min-width: 140px;
}

/* Competitor article items */

.comp-articles {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.comp-article-item {
    display: flex;
    flex-direction: column;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.comp-article-item:last-child {
    border-bottom: none;
}

.comp-article-title {
    color: var(--accent-cyan);
    font-size: 0.82rem;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comp-article-title:hover {
    text-decoration: underline;
}

.comp-article-snippet {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 2px;
}

.comp-more {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    padding: 6px 0;
}

/* Topic cards */

.topic-card {
    border-left: 3px solid var(--accent-purple);
}

.topic-score {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-cyan);
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(0, 212, 255, 0.1);
}

.topic-strategy {
    font-size: 0.78rem;
    color: var(--text-secondary);
    padding: 6px 0 0;
    line-height: 1.5;
    margin: 0;
}

/* Nav "NEW" badge */

.nav-badge-new {
    font-size: 0.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    color: white;
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: auto;
    letter-spacing: 0.5px;
}

/* Badge red (for breaking urgency) */

.badge-red {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}