:root {
    --primary-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    --bg-dark: #0f0f13;
    --bg-card: #1a1a24;
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --accent: #e1306c;
    --success: #00fa9a;
    --error: #ff4757;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

/* Animations */
@keyframes flicker {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(225, 48, 108, 0.4);
    }

    50% {
        box-shadow: 0 0 20px 5px rgba(225, 48, 108, 0.2);
    }
}

.float-anim {
    animation: float 3s ease-in-out infinite;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 15, 19, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    background: radial-gradient(circle at top right, rgba(225, 48, 108, 0.15), transparent 40%),
        radial-gradient(circle at bottom left, rgba(88, 81, 219, 0.15), transparent 40%);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1rem;
    line-height: 1.1;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(220, 39, 67, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(220, 39, 67, 0.4);
}

/* Features Grid */
.features {
    padding: 4rem 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Blog/Article Section */
.articles-section {
    padding: 4rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.article-content {
    padding: 1.5rem;
}

.article-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.article-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 5%;
    background: rgba(255, 255, 255, 0.02);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    padding: 1.5rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.faq-answer {
    padding-bottom: 1.5rem;
    color: var(--text-muted);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question {
    color: var(--accent);
}

/* Generator Page Styles */
.generator-container {
    max-width: 520px;
    margin: 6rem auto;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.platforms {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.platform-btn {
    flex: 1;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.platform-btn.selected {
    border-color: var(--accent);
    background: rgba(225, 48, 108, 0.1);
}

.platform-icon {
    font-size: 1.5rem;
}

.input-group {
    margin-bottom: 2rem;
}

.username-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: 0.3s;
}

.username-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(225, 48, 108, 0.2);
}

.console-log {
    background: #000;
    padding: 1rem;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #0f0;
    text-align: left;
    height: 150px;
    overflow-y: auto;
    display: none;
    margin-bottom: 1.5rem;
}

.log-line {
    margin-bottom: 0.3rem;
    opacity: 0;
    animation: flicker 0.1s forwards;
}

/* Fake Recaptcha */
.recaptcha-box {
    background: #f9f9f9;
    color: #000;
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    padding: 10px 12px;
    width: 300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.08);
}

.recaptcha-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #c1c1c1;
    border-radius: 2px;
    background: #fff;
    margin-right: 12px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recaptcha-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #1a73e8;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.recaptcha-label {
    flex-grow: 1;
    font-family: Roboto, helvetica, arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    text-align: left;
}

.recaptcha-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 10px;
}

.recaptcha-logo svg {
    width: 32px;
}

.recaptcha-tos {
    font-size: 10px;
    color: #555;
    margin-top: 2px;
    text-align: center;
}

.verify-failed {
    color: var(--error);
    font-size: 0.9rem;
    margin-top: 10px;
    display: none;
}

.verify-checking {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 10px;
    display: none;
}

/* Footer */
footer {
    padding: 4rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
    text-align: center;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

.hidden {
    display: none;
}

/* ======================================== */
/* Analysis/Scanning UI                     */
/* ======================================== */
.scanning-container {
    padding: 2rem 0;
    text-align: center;
}

.scan-progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 1.5rem 0;
    position: relative;
}

.scan-progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    width: 0%;
    transition: width 0.3s linear;
}

.scan-status-text {
    font-family: 'Courier New', monospace;
    color: var(--accent);
    font-size: 0.9rem;
    min-height: 1.5rem;
}

/* ======================================== */
/* Results Dashboard                        */
/* ======================================== */
.results-dashboard {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
}

/* Profile Card */
.profile-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.2rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f09433, #e1306c, #bc1888);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    overflow: hidden;
    flex-shrink: 0;
    padding: 3px;
    animation: pulseGlow 2s ease-in-out infinite;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.profile-status {
    font-size: 0.8rem;
    color: var(--success);
    margin-top: 0.2rem;
}

.profile-status i {
    margin-right: 0.25rem;
}

/* Stat Grid 3 columns */
.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.stat-grid.stat-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.stat-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 0.5rem;
    border-radius: 10px;
    text-align: center;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.stat-value.highlight {
    color: var(--accent);
}

/* Bot Analysis */
.bot-analysis-section {
    background: rgba(255, 71, 87, 0.06);
    border: 1px solid rgba(255, 71, 87, 0.15);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    margin-bottom: 1.2rem;
}

.bot-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.bot-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4757, #ff6b81);
    width: 0%;
    border-radius: 4px;
    transition: width 1s ease-out;
}

/* Demographics */
.demographics-list {
    margin-bottom: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 0.8rem 1rem;
}

.demo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.demo-item:last-child {
    margin-bottom: 0;
}

.progress-thin {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    width: 60px;
}

.progress-thin-fill {
    height: 100%;
    background: var(--success);
    border-radius: 2px;
    transition: width 0.8s ease-out;
}

/* Follower Selector */
.follower-select-section {
    margin-bottom: 1rem;
}

.follower-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.follower-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 0.8rem 0.4rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.follower-option:hover {
    border-color: rgba(225, 48, 108, 0.4);
    background: rgba(225, 48, 108, 0.05);
}

.follower-option.selected {
    border-color: var(--accent);
    background: rgba(225, 48, 108, 0.12);
    box-shadow: 0 0 15px rgba(225, 48, 108, 0.15);
}

.fo-count {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}

.fo-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.15rem;
}

.fo-badge {
    position: absolute;
    top: -8px;
    right: -4px;
    background: var(--primary-gradient);
    color: white;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

/* Safety Badge */
.safety-badge {
    background: rgba(0, 250, 154, 0.08);
    border: 1px solid rgba(0, 250, 154, 0.25);
    color: var(--success);
    padding: 0.8rem;
    border-radius: 10px;
    font-size: 0.8rem;
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    line-height: 1.4;
    margin-top: 0.8rem;
}

.safety-badge i {
    font-size: 1.2rem;
    margin-top: 0.1rem;
}

/* Responsive for follower options */
@media (max-width: 420px) {
    .follower-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-grid.stat-grid-3 {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .profile-avatar {
        width: 54px;
        height: 54px;
    }
}