/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #5b21b6;
    --primary-dark: #4c1d95;
    --primary-glow: rgba(91, 33, 182, 0.28);
    --primary-soft: rgba(91, 33, 182, 0.08);
    --secondary-color: #7c3aed;
    --accent-warm: #d97706;
    --accent-soft: rgba(217, 119, 6, 0.12);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #94a3b8;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #0c0a14;
    --border-color: #e2e8f0;
    --border-subtle: #f1f5f9;
    --success-color: #059669;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 28px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px -4px rgba(0, 0, 0, 0.08), 0 2px 8px -4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 32px -8px rgba(0, 0, 0, 0.1), 0 4px 12px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 24px 48px -12px rgba(0, 0, 0, 0.12);
    --shadow-inner: inset 0 1px 2px rgba(0, 0, 0, 0.04);
    --transition-fast: 0.18s ease;
    --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
}

[data-theme="dark"] {
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-light: #64748b;
    --bg-primary: #0f0d14;
    --bg-secondary: #1a1720;
    --bg-tertiary: #25222c;
    --bg-dark: #08060c;
    --border-color: #2e2a36;
    --border-subtle: #25222c;
    --primary-glow: rgba(124, 58, 237, 0.3);
    --primary-soft: rgba(124, 58, 237, 0.1);
    --accent-soft: rgba(217, 119, 6, 0.12);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 4px 16px -4px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px -8px rgba(0, 0, 0, 0.45);
    --shadow-xl: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-primary);
    transition: background-color 0.4s ease, color 0.4s ease;
}

.dashboard-body {
    transition: background-color 0.4s ease, color 0.4s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .navbar {
    background: rgba(17, 24, 39, 0.95);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 800;
}

/* Animated promo line under the top-left logo */
.logo-animated {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

.logo-promo {
    display: block;
    max-width: 42vw;
}

.logo-promo-text {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    /* Reveal left-to-right by animating the available width */
    max-width: 0;
    animation: logoPromoReveal 2.8s steps(40, end) forwards;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.15;
}

@keyframes logoPromoReveal {
    from { max-width: 0; }
    to { max-width: 38ch; }
}

@media (prefers-reduced-motion: reduce) {
    .logo-promo-text {
        animation: none;
        max-width: 100%;
    }
}

.logo-img {
    height: 32px;
    width: auto;
    max-width: min(168px, 42vw);
    display: block;
}

.logo-img--footer {
    height: 28px;
    max-width: min(160px, 50vw);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
}

.btn-link:hover {
    color: var(--primary-color);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: all 0.3s;
    margin-right: 0.5rem;
}

.theme-toggle:hover {
    background: var(--border-color);
    transform: scale(1.05);
}

.theme-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    transition: opacity 0.3s;
}

[data-theme="dark"] .theme-icon .theme-icon-moon {
    display: none !important;
}

[data-theme="dark"] .theme-icon .theme-icon-sun {
    display: block !important;
}

.theme-icon .theme-icon-sun {
    display: none;
}

.btn-inline-icon {
    display: inline-block;
    vertical-align: -0.2em;
    margin-left: 0.35rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

@media (max-width: 968px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out, background-color 0.3s ease;
    }

    [data-theme="dark"] .nav-links {
        background: var(--bg-secondary);
    }

    .nav-links.active {
        max-height: 500px;
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 0;
    }

    .nav-actions {
        gap: 0.5rem;
    }
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-badge span {
    background: var(--success-color);
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    margin-right: 0.5rem;
    font-weight: 600;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-hero {
    background: white;
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .btn-hero {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dashboard-mockup {
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .dashboard-mockup {
    background: var(--bg-secondary);
}

.mockup-content {
    padding: 1rem;
}

.mockup-header {
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .mockup-header {
    background: var(--bg-dark);
}

.mockup-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mockup-chart {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.5rem;
    opacity: 0.8;
}

.mockup-chart--video {
    height: auto;
    min-height: 200px;
    aspect-ratio: 16 / 9;
    max-height: 280px;
    padding: 0;
    background: var(--bg-dark);
    opacity: 1;
    overflow: hidden;
}

.mockup-chart-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}

.mockup-stats {
    display: flex;
    gap: 1rem;
}

.stat-item {
    flex: 1;
    height: 80px;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Control Section */
.control-section {
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

[data-theme="dark"] .feature-card {
    background: var(--bg-secondary);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.trending-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.tag {
    background: var(--primary-color);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.example-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
}

.channels-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .channel-item {
    background: var(--bg-primary);
}

.channel-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.channel-info {
    flex: 1;
}

.channel-name {
    font-weight: 600;
    color: var(--text-primary);
}

.channel-subs {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.match-badge {
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.creation-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .step-item {
    background: var(--bg-primary);
}

.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
}

.check-icon .landing-icon {
    width: 14px;
    height: 14px;
    stroke: #fff;
}

/* Platform Section */
.platform-section {
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.platform-features {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
}

.platform-feature {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .platform-feature {
    background: var(--bg-secondary);
}

.platform-feature-icon {
    font-size: 4rem;
}

.platform-feature-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.platform-feature-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.platform-feature-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.platform-feature-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.platform-feature-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.filter-example {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.filter-tag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.filter-conditions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.filter-conditions span {
    background: white;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .filter-conditions span {
    background: var(--bg-primary);
}

.video-generator {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.prompt-box {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .prompt-box {
    background: var(--bg-primary);
}

.prompt-text {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.prompt-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.generate-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.generate-btn:hover {
    background: var(--primary-dark);
}

.credit-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.voiceover-player {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.player-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.player-icon {
    font-size: 1.5rem;
}

.player-title {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary);
}

.player-duration {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.player-waveform {
    display: flex;
    gap: 0.25rem;
    align-items: flex-end;
    height: 60px;
    margin-bottom: 1rem;
}

.wave-bar {
    flex: 1;
    background: var(--primary-color);
    border-radius: 2px;
    min-height: 20px;
}

.wave-bar:nth-child(1) { height: 30%; }
.wave-bar:nth-child(2) { height: 60%; }
.wave-bar:nth-child(3) { height: 80%; }
.wave-bar:nth-child(4) { height: 50%; }
.wave-bar:nth-child(5) { height: 70%; }

.player-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.8;
}

.player-text p {
    margin-bottom: 0.5rem;
}

/* Why Choose Section */
.why-choose-section {
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.tool-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.tool-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.tool-icon .landing-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--primary-color);
}

.tool-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.tool-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.all-tools-cta {
    text-align: center;
    margin: 4rem 0;
    padding: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    color: white;
}

.all-tools-cta h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.all-tools-cta p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.integrations {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 1.25rem;
}

/* Testimonials Section */
.testimonials-section {
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    min-height: 300px;
}

.testimonial-card {
    display: none;
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .testimonial-card {
    background: var(--bg-secondary);
}

.testimonial-card.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.author-name {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonial-prev,
.testimonial-next {
    background: white;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s;
}

[data-theme="dark"] .testimonial-prev,
[data-theme="dark"] .testimonial-next {
    background: var(--bg-secondary);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.testimonial-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--primary-color);
    width: 32px;
    border-radius: 6px;
}

/* Credits Section */
.credits-section {
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.credit-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.credit-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.credit-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.credit-cost {
    margin-bottom: 1.5rem;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cost-label {
    color: var(--text-primary);
    font-weight: 500;
}

.recommended {
    background: var(--success-color);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    font-weight: 600;
}

.cost-value {
    color: var(--primary-color);
    font-weight: 700;
}

.credit-included,
.credit-topup {
    margin-bottom: 1.5rem;
}

.credit-included p,
.credit-topup p {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.credit-included ul {
    list-style: none;
    padding-left: 0;
}

.credit-included li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.topup-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.topup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    font-size: 0.875rem;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .topup-item {
    background: var(--bg-primary);
}

.topup-price {
    font-weight: 700;
    color: var(--primary-color);
}

/* Pricing Section */
.pricing-section {
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.billing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.toggle-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.save-badge {
    background: var(--success-color);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.4s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    border: 2px solid var(--border-color);
    position: relative;
    transition: all 0.3s;
}

[data-theme="dark"] .pricing-card {
    background: var(--bg-secondary);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.plan-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.price-period {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-left: 0.25rem;
}

.plan-billing {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.btn-plan {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

button.btn-plan:disabled {
    opacity: 0.7;
    cursor: wait;
}

.btn-plan:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.plan-features {
    list-style: none;
}

.plan-features li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 1.5rem;
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 700;
}

.plan-features li:last-child {
    border-bottom: none;
}

.pricing-note {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .pricing-note {
    background: var(--bg-secondary);
}

.pricing-note p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq-section {
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 3rem;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: var(--bg-secondary);
    padding: 1.5rem;
    text-align: left;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s;
}

[data-theme="dark"] .faq-question:hover {
    background: var(--bg-primary);
}

.faq-question:hover {
    background: var(--border-color);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 1.5rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-cta {
    text-align: center;
    margin-top: 3rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 5rem 0;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo-img {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .platform-feature {
        grid-template-columns: 1fr;
    }

    .platform-feature-icon {
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .credits-grid {
        grid-template-columns: 1fr;
    }

    .cta-title {
        font-size: 2rem;
    }
}

/* Interactive Tools Section - Hidden by default to match original UI */
.tools-demo-section {
    display: none; /* Hidden to match original UI exactly */
    background: var(--bg-primary);
    padding: 5rem 0;
    transition: background-color 0.3s ease;
}

.tools-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tool-tab {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.tool-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tool-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tool-panel {
    display: none;
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .tool-panel {
    background: var(--bg-secondary);
}

.tool-panel.active {
    display: block;
    animation: fadeIn 0.5s;
}

.tool-header {
    margin-bottom: 2rem;
    text-align: center;
}

.tool-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.tool-header p {
    color: var(--text-secondary);
}

.tool-content {
    max-width: 1000px;
    margin: 0 auto;
}

/* Niche Finder Styles */
.search-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.filter-input,
.filter-select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn-search {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-search:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.results-container {
    min-height: 300px;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    padding: 2rem;
    transition: background-color 0.3s ease;
}

.results-placeholder {
    text-align: center;
    color: var(--text-secondary);
    padding: 3rem;
}

.niche-result-item {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

[data-theme="dark"] .niche-result-item {
    background: var(--bg-primary);
}

.niche-result-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.niche-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.niche-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.niche-trend {
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.niche-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.niche-stat {
    display: flex;
    flex-direction: column;
}

.niche-stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.niche-stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Video Generator Styles */
.video-generator-interface {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.prompt-section {
    display: flex;
    flex-direction: column;
}

.prompt-section label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.prompt-textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    background: var(--bg-primary);
    color: var(--text-primary);
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.prompt-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.prompt-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.option-group {
    display: flex;
    flex-direction: column;
}

.option-group label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.option-select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
}

.option-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-generate {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 1rem;
}

.btn-generate:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-generate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.credit-display {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
}

.video-preview-section,
.image-preview-section,
.voice-preview-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-preview,
.image-preview-section {
    width: 100%;
    min-height: 300px;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.preview-placeholder {
    text-align: center;
    color: var(--text-secondary);
}

.preview-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.video-preview video {
    width: 100%;
    border-radius: 0.5rem;
    max-height: 400px;
}

/* Image Generator Styles */
.image-generator-interface {
    display: flex;
    flex-direction: column;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.image-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.image-item {
    aspect-ratio: 16 / 9;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Channel Analysis Styles */
.channel-search-section {
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    gap: 1rem;
}

.search-input {
    flex: 1;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.channel-results {
    min-height: 400px;
}

.channel-analysis-card {
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.channel-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.channel-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.channel-info-large h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.channel-info-large p {
    color: var(--text-secondary);
}

.channel-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.metric-box {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .metric-box {
    background: var(--bg-primary);
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Voice Generator Styles */
.voice-generator-interface {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.voice-player {
    width: 100%;
    min-height: 300px;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    padding: 2rem;
    border: 2px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.player-placeholder {
    text-align: center;
    color: var(--text-secondary);
}

.audio-player {
    width: 100%;
    margin-top: 1rem;
}

.audio-player audio {
    width: 100%;
}

/* Dashboard Section - Hidden by default to match original UI */
.dashboard-section {
    display: none; /* Hidden to match original UI exactly */
    background: var(--bg-secondary);
    padding: 5rem 0;
    transition: background-color 0.3s ease;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.dashboard-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

[data-theme="dark"] .dashboard-card {
    background: var(--bg-secondary);
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-content {
    padding: 1.5rem;
}

.credit-balance {
    text-align: center;
    margin-bottom: 1.5rem;
}

.balance-main {
    margin-bottom: 1.5rem;
}

.balance-amount {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.balance-label {
    display: block;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.balance-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: background-color 0.3s ease;
}

.detail-item span:first-child {
    color: var(--text-secondary);
}

.detail-item span:last-child {
    font-weight: 600;
    color: var(--text-primary);
}

.btn-topup {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-topup:hover {
    background: var(--primary-dark);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.activity-icon {
    font-size: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .activity-icon {
    background: var(--bg-primary);
}

.activity-info {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.activity-credits {
    font-weight: 700;
    color: var(--primary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-box {
    text-align: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Responsive adjustments for tools */
@media (max-width: 968px) {
    .search-filters {
        grid-template-columns: 1fr;
    }

    .video-generator-interface,
    .voice-generator-interface {
        grid-template-columns: 1fr;
    }

    .tools-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .tool-tab {
        white-space: nowrap;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Login Modal Styles */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-modal.active {
    display: flex;
}

.login-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.login-modal-content {
    position: relative;
    background: var(--bg-primary);
    border-radius: 1rem;
    padding: 2.5rem;
    max-width: 440px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    animation: slideUp 0.3s ease;
    z-index: 1;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .login-modal-content {
    background: var(--bg-secondary);
}

.login-modal-content--legal {
    max-width: min(42rem, 100%);
    padding: 1.75rem 1.75rem 2rem;
}

.legal-modal-body {
    padding-top: 0.5rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-primary);
}

.legal-modal-body h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.legal-modal-body h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 1.5rem 0 0.5rem;
    color: var(--text-primary);
}

.legal-lead {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.legal-modal-body p {
    margin-bottom: 0.75rem;
}

.legal-list {
    margin: 0.5rem 0 1rem 1.25rem;
    padding: 0;
}

.legal-list li {
    margin-bottom: 0.5rem;
}

.legal-modal-body a {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-modal-body a:hover {
    text-decoration: none;
}

.legal-modal-body code {
    font-size: 0.85em;
    padding: 0.1em 0.35em;
    background: var(--bg-secondary);
    border-radius: 0.25rem;
    border: 1px solid var(--border-color);
}

.legal-updated {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.3s;
    line-height: 1;
}

.login-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header .logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.login-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.login-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s;
}

[data-theme="dark"] .form-group input[type="email"],
[data-theme="dark"] .form-group input[type="password"],
[data-theme="dark"] .form-group input[type="text"] {
    background: var(--bg-primary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.password-toggle:hover {
    color: var(--text-primary);
}

.eye-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    user-select: none;
}

.eye-icon .landing-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.eye-icon .landing-icon[hidden] {
    display: none !important;
}

.error-message {
    display: block;
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
}

.password-strength {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.5rem;
    height: 4px;
}

.strength-bar {
    flex: 1;
    background: var(--border-color);
    border-radius: 2px;
    transition: background-color 0.3s;
}

.strength-bar.weak {
    background: #ef4444;
}

.strength-bar.fair {
    background: #f59e0b;
}

.strength-bar.good {
    background: #10b981;
}

.strength-bar.strong {
    background: #10b981;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.form-options--right {
    justify-content: flex-end;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
    text-align: right;
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.forgot-password:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.forgot-password-feedback {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--text-secondary, #5c5c5c);
}

.forgot-password-feedback--success {
    color: var(--success-color, #0d9488);
}

.btn-login {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: none;
}

.btn-login.loading .btn-text {
    display: none;
}

.btn-login.loading .btn-loading {
    display: inline-block;
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    text-align: center;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.login-divider span {
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.social-login {
    margin-bottom: 1.5rem;
}

.btn-social {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

[data-theme="dark"] .btn-social {
    background: var(--bg-secondary);
}

.btn-social:hover {
    border-color: var(--primary-color);
    background: var(--bg-secondary);
    transform: translateY(-1px);
}

[data-theme="dark"] .btn-social:hover {
    background: var(--bg-primary);
}

.btn-social.loading,
.btn-social:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-social.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

.login-footer {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Responsive Login Modal */
@media (max-width: 640px) {
    .login-modal-content {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }
}

/* Ripple Effect - Removed to match original UI */

/* Removed enhanced interactions to match original UI */

/* Loading States */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tool-panel.active {
    animation: fadeInScale 0.5s ease-out;
}

.niche-result-item {
    animation: slideInUp 0.5s ease-out;
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Hover Effects */
.pricing-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

/* Scroll Progress Indicator - Removed to match original UI */

/* Post-auth subscription plan modal (matches dashboard plans UI) */
.plans-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.plans-modal.plans-modal-open {
    opacity: 1;
    visibility: visible;
}

.plans-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: default;
}

.plans-modal-content {
    position: relative;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem 2.25rem;
}

.plans-modal-title {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.35rem 0;
}

.plans-modal-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 720px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }
}

.plan-card {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: border-color var(--transition-fast), box-shadow var(--transition-normal);
}

.plan-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px -4px var(--primary-glow);
}

.plan-card-featured {
    border-color: var(--primary-color);
    background: var(--primary-soft);
}

.plan-card-badge {
    position: absolute;
    top: -1px;
    right: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--primary-color);
    background: var(--bg-primary);
    padding: 0.25rem 0.6rem;
    border-radius: 0 0 6px 6px;
    border: 1px solid var(--primary-color);
    border-top: none;
}

.plan-card-header {
    margin-bottom: 0.75rem;
}

.plan-card-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.plan-card-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
}

.plan-card-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.plan-card-period {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.plan-card-features {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
    line-height: 1.45;
    flex: 1;
}

.plan-card-activate {
    width: 100%;
    margin-top: auto;
}

.settings-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-heading);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.settings-btn-primary {
    margin-top: 0.5rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    box-shadow: 0 2px 10px var(--primary-glow);
}

.settings-btn-primary:hover {
    filter: brightness(1.06);
    box-shadow: 0 4px 16px var(--primary-glow);
}

.post-auth-plans-footer {
    margin: 1.5rem 0 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.post-auth-sign-out {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
}

.post-auth-sign-out:hover {
    color: var(--primary-color);
}

.post-auth-continue-banner {
    margin: 0 0 1.25rem 0;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    text-align: center;
}

.post-auth-continue-text {
    margin: 0 0 0.75rem 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.post-auth-continue-banner .settings-btn-primary {
    margin-top: 0;
}

