/* Responsive tweaks for playlist results */
@media (max-width: 1024px) {
    .playlist-results {
        max-width: 960px;
        padding: 0 16px
    }

    .pl-header {
        gap: .75rem
    }

    .pl-thumb-img {
        width: 128px;
        height: 72px
    }
}

@media (max-width: 768px) {
    .playlist-results {
        max-width: 720px;
        padding: 0 16px
    }

    .pl-header {
        flex-direction: column;
        align-items: flex-start
    }

    .pl-controls {
        width: 100%;
        display: flex;
        gap: .5rem;
        flex-wrap: wrap;
        justify-content: flex-start
    }

    .pl-thumb-img {
        width: 112px;
        height: 64px
    }

    .pl-item {
        padding: 10px
    }
}

@media (max-width: 600px) {
    .pl-item {
        flex-direction: column;
        align-items: flex-start
    }

    .pl-thumb-img {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9
    }

    .pl-video-title {
        display: block;
        line-height: 1.4;
        margin-top: 6px;
        word-break: break-word
    }
}

@media (max-width: 420px) {
    .pl-header {
        gap: .5rem
    }

    .pl-title {
        font-size: 1.05rem
    }

    .pl-sub {
        font-size: .9rem
    }

    .pl-scroll {
        max-height: calc(100vh - 200px)
    }
}

/* --- Bulk Playlist UI Enhancements --- */
.playlist-input-section .input-container {
    gap: .75rem
}

.playlist-results {
    margin: 1.5rem auto 0;
    width: 100%;
    max-width: 1200px
}

.pl-scroll {
    max-height: calc(100vh - 220px);
    overflow: auto;
    padding-right: 6px;
    width: 100%
}

/* Dark mode for playlist scroll area */
.dark .pl-scroll {
    scrollbar-width: thin;
    scrollbar-color: hsl(var(--muted-foreground)) hsl(var(--muted));
}

.dark .pl-scroll::-webkit-scrollbar {
    width: 8px;
}

.dark .pl-scroll::-webkit-scrollbar-track {
    background: hsl(var(--muted));
    border-radius: 4px;
}

.dark .pl-scroll::-webkit-scrollbar-thumb {
    background: hsl(var(--muted-foreground));
    border-radius: 4px;
}

.dark .pl-scroll::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--foreground));
}

.pl-list {
    width: 100%
}

.pl-item {
    width: 100%
}

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

.pl-title {
    font-weight: 800;
    font-size: 1.25rem
}

/* Dark mode for playlist title */
.dark .pl-title {
    color: hsl(var(--foreground));
}

.pl-sub {
    color: #6b7280;
    margin-top: 2px
}

/* Dark mode for playlist subtitle */
.dark .pl-sub {
    color: hsl(var(--muted-foreground));
}

.pl-warning {
    color: #ef4444;
    margin-top: 2px;
    font-size: .9rem
}

/* Dark mode for playlist warning */
.dark .pl-warning {
    color: #f87171;
}

.btn-fetch {
    display: inline-flex;
    align-items: center;
    gap: .5rem
}

.btn-fetch svg {
    margin-right: .25rem
}

.pl-scroll {
    max-height: calc(100vh - 220px);
    overflow: auto;
    padding-right: 6px
}

.pl-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pl-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    background: var(--card-bg, #fff)
}

/* Dark mode for playlist item */
.dark .pl-item {
    background: hsl(var(--card));
    border-color: hsl(var(--border));
    color: hsl(var(--foreground));
}

.pl-item .pl-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ec4899;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ec4899;
    background: #fff
}

/* Dark mode for playlist checkboxes */
.dark .pl-item .pl-check {
    background: hsl(var(--background));
    border-color: hsl(var(--primary));
    color: hsl(var(--primary));
}

.pl-item:not(.selected) .pl-check {
    opacity: .6;
    border-color: #e5e7eb;
    color: #e5e7eb
}

/* Dark mode for unselected playlist checkboxes */
.dark .pl-item:not(.selected) .pl-check {
    border-color: hsl(var(--border));
    color: hsl(var(--muted-foreground));
}

.pl-item.selected {
    border-color: #fce7f3
}

/* Dark mode for selected playlist item */
.dark .pl-item.selected {
    border-color: hsl(var(--primary) / 0.3);
}

.pl-item .pl-check i {
    font-size: 10px
}

.pl-thumb-img {
    width: 140px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px
}

.pl-video-title {
    color: inherit;
    text-decoration: none
}

.pl-video-title:hover {
    text-decoration: underline
}

/* Header controls */
.pl-controls {
    display: flex;
    align-items: center;
    gap: .75rem
}

.pl-toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #6b7280;
    cursor: pointer
}

/* Dark mode for playlist toggle */
.dark .pl-toggle {
    color: hsl(var(--muted-foreground));
}

.pl-toggle input {
    accent-color: #ec4899
}

/* Skeleton */
/* skeleton removed */
@keyframes shimmer {
    0% {
        background-position: 200% 0
    }

    100% {
        background-position: -200% 0
    }
}

.pl-item.skeleton .pl-thumb {
    width: 140px;
    height: 80px;
    border-radius: 10px
}

.pl-line {
    height: 14px;
    border-radius: 8px;
    margin: 8px 0
}

.skeleton-line {
    height: 18px;
    border-radius: 10px
}

.w-1280 {
    width: 80%
}

.w-1260 {
    width: 60%
}

.w-1250 {
    width: 50%
}

/* Accent button to match screenshot */
.btn-accent {
    background: #ec4899;
    color: #fff;
    border: none
}

.btn-accent:hover {
    filter: brightness(.95)
}

/* Dark mode for accent button */
.dark .btn-accent {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

/* Done badge styles */
.pl-badge-done {
    margin-left: auto;
    background: #10b981;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 9999px;
}

/* Dark mode for done badge */
.dark .pl-badge-done {
    background: #059669;
    color: #fff;
}

/* Modern SaaS Design System - World Class Gradients & Colors */

/* CSS Variables */
:root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;

    /* Brand Colors - Electric Purple to Blue */
    --primary: 267 82% 60%;
    --primary-foreground: 0 0% 100%;
    --primary-glow: 267 100% 85%;

    /* Hero Gradient Colors */
    --hero-from: 267 82% 60%;
    --hero-via: 252 82% 60%;
    --hero-to: 236 85% 65%;

    /* Accent Colors */
    --accent-purple: 267 82% 60%;
    --accent-blue: 236 85% 65%;
    --accent-pink: 325 80% 70%;

    --secondary: 240 4.8% 95.9%;
    --secondary-foreground: 240 5.9% 10%;
    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 3.8% 46.1%;
    --accent: 240 4.8% 95.9%;
    --accent-foreground: 240 5.9% 10%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 240 5.9% 90%;
    --input: 240 5.9% 90%;
    --ring: 267 82% 60%;
    --radius: 0.75rem;

    /* Custom Gradients */
    --gradient-hero: linear-gradient(135deg, hsl(var(--hero-from)), hsl(var(--hero-via)), hsl(var(--hero-to)));
    --gradient-primary: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent-blue)));
    --gradient-accent: linear-gradient(135deg, hsl(var(--accent-purple)), hsl(var(--accent-pink)));
    --gradient-subtle: linear-gradient(135deg, hsl(var(--background)), hsl(240 4.8% 97%));

    /* Glow Effects */
    --glow-primary: 0 20px 60px -10px hsl(var(--primary) / 0.3);
    --glow-hero: 0 30px 100px -20px hsl(var(--hero-from) / 0.4);
    --glow-accent: 0 15px 40px -10px hsl(var(--accent-purple) / 0.25);

    /* Animations */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.dark {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;
    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;
    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;

    /* Dark Mode Brand Colors */
    --primary: 267 82% 65%;
    --primary-foreground: 222.2 84% 4.9%;
    --primary-glow: 267 100% 90%;

    /* Dark Hero Gradients */
    --hero-from: 267 82% 65%;
    --hero-via: 252 82% 65%;
    --hero-to: 236 85% 70%;

    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;
    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;
    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;
    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 267 82% 65%;

    /* Dark Mode Glows */
    --glow-primary: 0 20px 60px -10px hsl(var(--primary) / 0.4);
    --glow-hero: 0 30px 100px -20px hsl(var(--hero-from) / 0.5);
    --glow-accent: 0 15px 40px -10px hsl(var(--accent-purple) / 0.3);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    font-feature-settings: "cv11", "ss01";
    font-variation-settings: "opsz" 32;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.25rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Additional Gradient Classes */
.bg-gradient-hero {
    background: var(--gradient-hero);
}

.text-gradient-hero {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

.animate-gradient-shift {
    animation: gradient-shift 3s ease infinite;
}

/* Hover Effects */
.hover-lift {
    transition: var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-2px);
}

.hover-scale {
    transition: var(--transition-bounce);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Glass Morphism */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.btn-primary {
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.3);
}

.btn-primary:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px 0 rgba(239, 68, 68, 0.4);
}

.btn-extract {
    background: #ef4444;
    color: white;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.3);
}

.btn-extract:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px 0 rgba(239, 68, 68, 0.4);
}

.btn-extract svg {
    transition: transform 0.2s ease;
}

.btn-extract:hover svg {
    transform: translateX(4px);
}

.btn-outline {
    background: transparent;
    color: hsl(var(--foreground));
    border: 2px solid hsl(var(--border));
    padding: 0.75rem 1.5rem;
}

.btn-outline:hover {
    border-color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.05);
    color: hsl(var(--primary));
}

.btn-hero {
    background: var(--gradient-hero);
    color: white;
    box-shadow: var(--glow-hero);
    font-weight: 700;
}

.btn-hero:hover {
    box-shadow: var(--glow-hero);
    transform: scale(1.05);
}

.btn-glass {
    background: rgba(255, 229, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-glass:hover {
    background: rgba(255, 229, 255, 0.9);
    transform: scale(1.05);
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 60px;
    height: 100vh;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    z-index: 1000;
    transition: width 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.sidebar:hover {
    width: 280px;
}

.sidebar-header {
    padding: 5px;
    border-bottom: 1px solid #e9ecef;
    /* min-height: 80px; */
    display: flex;
    align-items: center;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.sidebar-logo:hover {
    background: rgba(0, 0, 0, 0.05);
    color: inherit;
    text-decoration: none;
}

.dark .sidebar-logo:hover {
    background: rgba(255, 255, 255, 0.1);
}

.logo-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-brand-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: #212529;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar:hover .sidebar-brand-text {
    opacity: 1;
}

.sidebar-divider {
    height: 1px;
    background: #e9ecef;
    margin: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
    height: 48px;
    min-height: 48px;
    box-sizing: border-box;
}

.sidebar-link:hover {
    background: #e9ecef;
    color: #212529;
}

.sidebar-link.active {
    background: #dee2e6;
    color: #212529;
    font-weight: 500;
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #007bff;
}

.sidebar-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.sidebar-link-text {
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.875rem;
}

.sidebar:hover .sidebar-link-text {
    opacity: 1;
}



.external-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-left: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar:hover .external-icon {
    opacity: 1;
}

.sidebar-url {
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.url-highlight {
    background: #d4edda;
    color: #155724;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-family: monospace;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar:hover .url-highlight {
    opacity: 1;
}

/* Dark mode sidebar */
.dark .sidebar {
    background: #212529;
    border-right-color: #495057;
}

.dark .sidebar-header {
    border-bottom-color: #495057;
}

.dark .sidebar-brand-text {
    color: #f8f9fa;
}

.dark .sidebar-divider {
    background: #495057;
}

.dark .sidebar-link {
    color: #adb5bd;
}

.dark .sidebar-link:hover {
    background: #495057;
    color: #f8f9fa;
}

.dark .sidebar-link.active {
    background: #495057;
    color: #f8f9fa;
}



.dark .sidebar-url {
    border-top-color: #495057;
}

.dark .url-highlight {
    background: #d1ecf1;
    color: #0c5460;
}

/* Adjust main content for sidebar */
body {
    margin-left: 60px;
}

.dark body {
    margin-left: 60px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    body {
        margin-left: 0;
    }

    .dark body {
        margin-left: 0;
    }

    /* Add mobile sidebar toggle button */
    .mobile-sidebar-toggle {
        position: fixed;
        top: 0.5rem;
        left: 1rem;
        z-index: 1001;
        background: #007bff;
        color: white;
        border: none;
        border-radius: 0.5rem;
        padding: 0.5rem;
        cursor: pointer;
        display: block;
    }

    .dark .mobile-sidebar-toggle {
        background: #495057;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}

.dark .navbar {
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    width: 1.75rem;
    height: 1.75rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
}

.brand-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    border-radius: 0.375rem;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link:hover {
    color: hsl(var(--foreground));
    background: hsl(var(--muted));
}

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

.discord-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: var(--transition-smooth);
}

.discord-link:hover {
    color: hsl(var(--foreground));
}

.theme-toggle {
    padding: 0.5rem;
    background: none;
    border: none;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    border-radius: 0.375rem;
    transition: var(--transition-smooth);
    position: relative;
}

.theme-toggle:hover {
    color: hsl(var(--foreground));
    background: hsl(var(--muted));
}

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

.dark .theme-toggle .moon-icon {
    display: none;
}

.dark .theme-toggle .sun-icon {
    display: block;
}

.badge {
    background: #10b981;
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
    margin-left: 0.25rem;
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    padding: 0.5rem;
    background: none;
    border: none;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    border-radius: 0.375rem;
    transition: var(--transition-smooth);
}

.mobile-menu-btn:hover {
    color: hsl(var(--foreground));
    background: hsl(var(--muted));
}

.mobile-menu-btn .close-icon {
    display: none;
}

.mobile-menu-btn.active .menu-icon {
    display: none;
}

.mobile-menu-btn.active .close-icon {
    display: block;
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: hsl(var(--background));
    border-top: 1px solid hsl(var(--border));
    padding: 0.75rem 0;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    border-radius: 0.375rem;
    transition: var(--transition-smooth);
}

.mobile-nav-link:hover {
    color: hsl(var(--foreground));
    background: hsl(var(--muted));
}

.mobile-nav-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid hsl(var(--border));
}

/* Main Content */
.main-content {
    padding-top: 3.5rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 3rem 0;
    overflow: hidden;
    min-height: calc(100vh - 3.5rem);
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    inset: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    opacity: 0.6;
}

.hero-radial {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 80% at 50% -20%, rgba(120, 119, 198, 0.15), rgba(255, 255, 255, 0));
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, hsl(var(--background)), hsl(var(--background) / 0.95), hsl(var(--background) / 0.9));
}

.hero-container {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: fade-in-up 0.6s ease-out 0.2s both;
}

.stars {
    display: flex;
    gap: 0.25rem;
}

.star {
    color: #fbbf24;
    fill: currentColor;
}

.rating-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.rating-label {
    font-weight: 600;
    color: hsl(var(--foreground));
}

.rating-score {
    font-size: 1.125rem;
    font-weight: 700;
    color: #d97706;
}

.divider {
    width: 1px;
    height: 1rem;
    background: hsl(var(--border));
}

.review-count {
    color: hsl(var(--muted-foreground));
    font-weight: 500;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.025em;
    color: hsl(var(--foreground));
    animation: fade-in-up 0.7s ease-out 0.3s both;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
}

.hero-title .gradient-text {
    position: relative;
    display: inline-block;
    padding: 10px;
}

.hero-title .instant-text {
    display: inline;
    margin-left: 0.25rem;
}

.hero-title {
    line-height: 1.0;
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

.title-line-1 {
    display: block;
    line-height: 1.0;
    margin-bottom: 0;
    white-space: nowrap;
}

.title-line-2 {
    display: block;
    line-height: 1.0;
    white-space: nowrap;
}

.play-icon {
    position: absolute;
    top: -0.5rem;
    right: -1rem;
    width: 2rem;
    height: 2rem;
    background: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: scale-pulse 2s ease-in-out infinite;
}

@keyframes scale-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.instant-text {
    color: #ef4444;
    font-weight: 800;
}

.hero-description {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    max-width: 42rem;
    font-weight: 500;
    animation: fade-in-up 0.7s ease-out 0.5s both;
}

@media (min-width: 1024px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

.url-input-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    animation: fade-in-up 0.7s ease-out 0.5s both;
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

.dark .input-container {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
    .input-container {
        flex-direction: row;
    }
}

.input-wrapper {
    flex: 1;
    position: relative;
}

.youtube-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #ef4444;
    font-size: 1.25rem;
    pointer-events: none;
    z-index: 2;
}

.url-input {
    width: 100%;
    height: 3.5rem;
    padding: 0 1.25rem 0 3.5rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    background: transparent;
    color: hsl(var(--foreground));
    outline: none;
    border-radius: 0.75rem;
}

.url-input::placeholder {
    color: hsl(var(--muted-foreground) / 0.7);
}

.additional-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.new-feature {
    position: relative;
}

.new-badge {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.4);
}

.trust-indicators {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-top: 1.5rem;
    animation: fade-in-up 0.7s ease-out 0.7s both;
}

@media (min-width: 640px) {
    .trust-indicators {
        grid-template-columns: repeat(3, 1fr);
    }
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-smooth);
}

.trust-item:hover {
    transform: scale(1.05);
}

.trust-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.trust-item:nth-child(1) .trust-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.dark .trust-item:nth-child(1) .trust-icon {
    background: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.trust-item:nth-child(2) .trust-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.dark .trust-item:nth-child(2) .trust-icon {
    background: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.trust-item:nth-child(3) .trust-icon {
    background: rgba(147, 51, 234, 0.1);
    color: #7c3aed;
}

.dark .trust-item:nth-child(3) .trust-icon {
    background: rgba(147, 51, 234, 0.3);
    color: #8b5cf6;
}

.trust-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.trust-subtitle {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

/* Hero Image */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

@media (min-width: 1024px) {
    .hero-image {
        justify-content: flex-end;
    }
}

.image-container {
    position: relative;
    max-width: 32rem;
    width: 100%;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: var(--transition-smooth);
}

.image-container:hover .hero-img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(147, 51, 234, 0.3), transparent, rgba(236, 72, 153, 0.1));
    border-radius: 1.5rem;
}

.floating-youtube {
    position: absolute;
    top: -1rem;
    left: -1rem;
    background: #ef4444;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 4px solid white;
    color: white;
    animation: float 5s ease-in-out infinite;
}

.dark .floating-youtube {
    border-color: hsl(var(--background));
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(3deg);
    }
}

.floating-stats {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid hsl(var(--border));
    backdrop-filter: blur(24px);
    animation: float 6s ease-in-out infinite 1.5s;
}

.dark .floating-stats {
    background: hsl(var(--background));
}

.stats-content {
    text-align: center;
}

.stats-value {
    font-size: 1.875rem;
    font-weight: 900;
    color: #059669;
}

.stats-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
}

.floating-speed {
    position: absolute;
    top: 50%;
    left: -2rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    animation: scale-pulse 3s ease-in-out infinite 0.5s;
}

/* Professionals Section */
.professionals {
    padding: 4rem 0;
    background: hsl(var(--background));
}

.professionals-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .professionals-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

.professionals-image {
    position: relative;
}

.team-img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: var(--glow-primary);
}

.professionals-image .image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
    border-radius: 1rem;
}

.professionals-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-badge {
    display: inline-block;
    background: var(--gradient-accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    width: fit-content;
}

.section-title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.2;
    color: hsl(var(--foreground));
    display: flex;
    flex-direction: column;
}

.section-title .title-line-1 {
    display: block;
    line-height: 1.1;
    white-space: nowrap;
}

.section-title .title-line-2 {
    display: block;
    line-height: 1.1;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 2.75rem;
    }
}

.section-description {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding-top: 1rem;
}

.stat-item {
    text-align: left;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: hsl(var(--muted-foreground));
    font-weight: 500;
}

.trusted-by {
    padding-top: 1.5rem;
    border-top: 1px solid hsl(var(--border));
}

.trusted-label {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.trusted-companies {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    opacity: 0.6;
}

.trusted-companies span {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

/* Process Steps Section */
.process-steps {
    padding: 4rem 0;
    background: var(--gradient-subtle);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 5rem;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step-item {
    position: relative;
    padding: 2.5rem 2rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1.25rem;
    text-align: center;
    transition: var(--transition-smooth);
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.step-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: hsl(var(--primary) / 0.2);
}

.step-number {
    position: absolute;
    top: -1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 3px solid hsl(var(--card));
}

.step-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 1.25rem;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem auto 1.5rem;
    position: relative;
    box-shadow: var(--glow-primary);
    transition: var(--transition-smooth);
}

.step-icon i {
    font-size: 2.25rem;
    color: white;
    transition: var(--transition-smooth);
}

.step-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 1.375rem;
    z-index: -1;
    opacity: 0;
    transition: var(--transition-smooth);
}

.step-item:hover .step-icon::before {
    opacity: 1;
    transform: scale(1.05);
}

.step-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
    line-height: 1.3;
}

.step-description {
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    font-size: 0.95rem;
}

.bottom-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2.5rem;
    border-top: 1px solid hsl(var(--border));
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
}

.bottom-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition-smooth);
    padding: 1.5rem;
    border-radius: 0.75rem;
    position: relative;
}

.bottom-stat:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.bottom-stat-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: var(--glow-accent);
    transition: var(--transition-smooth);
}

.bottom-stat-icon i {
    font-size: 1.5rem;
    color: white;
    transition: var(--transition-smooth);
}

.bottom-stat:hover .bottom-stat-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.bottom-stat:hover .bottom-stat-icon i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
}

@media (min-width: 768px) {
    .bottom-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.bottom-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.bottom-stat-label {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
}

/* FAQ Section */
.faq {
    padding: 4rem 0;
    background: linear-gradient(135deg, hsl(var(--background)), hsl(var(--muted) / 0.3), hsl(var(--background)));
    position: relative;
    overflow: hidden;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, hsl(var(--primary) / 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, hsl(var(--accent-blue) / 0.05) 0%, transparent 50%);
    z-index: 1;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
}

.faq-item {
    border: 1px solid hsl(var(--border));
    border-radius: 1.25rem;
    overflow: hidden;
    background: hsl(var(--card));
    backdrop-filter: blur(20px);
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-smooth);
    z-index: 1;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: hsl(var(--primary) / 0.3);
}

.faq-item:hover::before {
    transform: scaleX(1);
}

.faq-item.active {
    border-color: hsl(var(--primary) / 0.4);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.faq-item.active::before {
    transform: scaleX(1);
}

.faq-question {
    width: 100%;
    padding: 1rem 1.5rem;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    position: relative;
    z-index: 2;
}

.faq-question:hover {
    background: hsl(var(--primary) / 0.03);
    color: hsl(var(--primary));
}

.faq-item.active .faq-question {
    background: hsl(var(--primary) / 0.05);
    color: hsl(var(--primary));
}

@media (min-width: 768px) {
    .faq-question {
        padding: 1.25rem 2rem;
        font-size: 1.125rem;
    }
}

.faq-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.faq-question:hover .faq-icon {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

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

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

.faq-answer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, hsl(var(--border)), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.faq-answer.active::before {
    opacity: 1;
}

@media (min-width: 768px) {
    .faq-answer p {
        padding: 0 2rem 2rem;
        font-size: 1rem;
    }
}

.faq-cta {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.05), hsl(var(--accent-blue) / 0.05));
    border: 1px solid hsl(var(--primary) / 0.2);
    position: relative;
    z-index: 10;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.faq-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: hsl(var(--primary) / 0.3);
}

.faq-cta h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 0.75rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-cta p {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.faq-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 640px) {
    .faq-buttons {
        flex-direction: row;
        justify-content: center;
    }
}



.discord-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #5865f2, #4752c4);
    color: white;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.discord-button:hover {
    background: linear-gradient(135deg, #4752c4, #3c45a5);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(88, 101, 242, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.discord-button svg {
    width: 18px;
    height: 18px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-link:hover {
    border-color: hsl(var(--primary) / 0.5);
    color: hsl(var(--primary));
    box-shadow: var(--glow-accent);
    transform: scale(1.1);
}





.contact-email {
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 0.75rem 1rem;
    background: hsl(var(--muted) / 0.1);
    border-radius: 0.5rem;
    border-left: 3px solid hsl(var(--primary));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-email:hover {
    background: hsl(var(--muted) / 0.15);
    transform: translateX(4px);
}

.company-info {
    color: hsl(var(--muted-foreground));
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 0.75rem 1rem;
    background: hsl(var(--muted) / 0.05);
    border-radius: 0.5rem;
    border-left: 3px solid hsl(var(--accent-blue));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.company-info:hover {
    background: hsl(var(--muted) / 0.1);
    transform: translateX(4px);
}



.made-with {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.made-with svg {
    color: #ef4444;
    fill: currentColor;
}

.back-to-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    font-size: 0.875rem;
    transition: var(--transition-smooth);
}

.back-to-top:hover {
    color: hsl(var(--primary));
}

.back-to-top svg {
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-4px);
}

.mobile-back-to-top {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--glow-accent);
    transition: var(--transition-smooth);
    z-index: 50;
}

.mobile-back-to-top:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .mobile-back-to-top {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Animations */
@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Professional Use Case Section */
.professional-use-case {
    padding: 2rem 0;
    background: linear-gradient(135deg, #1e293b, #334155, #1e293b);
    color: white;
    position: relative;
    overflow: hidden;
}

.professional-use-case .section-title {
    font-size: 2.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 0.75rem;
    max-width: 100%;
    color: white;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: calc(2.5rem * 1.1 * 2);
}

.professional-use-case .section-title .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

@media (min-width: 768px) {
    .professional-use-case .section-title {
        font-size: 3rem;
        line-height: 1.1;
        height: calc(3rem * 1.1 * 2);
    }
}

.professional-use-case::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(120, 119, 198, 0.1), rgba(236, 72, 153, 0.1));
    opacity: 0.3;
}

.use-case-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

@media (min-width: 1024px) {
    .use-case-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

.use-case-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.professional-use-case .section-description {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.use-cases-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.use-case-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.use-case-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    opacity: 0;
    transition: var(--transition-smooth);
    border-radius: 0.75rem;
}

.use-case-item:hover {
    transform: translateX(8px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.use-case-item:hover::before {
    opacity: 1;
}

.use-case-icon {
    width: 2rem;
    height: 2rem;
    background: var(--gradient-primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: var(--glow-accent);
    transition: var(--transition-smooth);
}

.use-case-icon i {
    font-size: 0.875rem;
    transition: var(--transition-smooth);
}

.use-case-item:hover .use-case-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.use-case-item:hover .use-case-icon i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
}

.use-case-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.3;
}

.use-case-cta {
    padding-top: 0.5rem;
}

.use-case-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.use-case-stat {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.use-case-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.use-case-stat:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.use-case-stat:hover::before {
    transform: scaleX(1);
}

.use-case-stat-icon {
    width: 1.75rem;
    height: 1.75rem;
    background: var(--gradient-primary);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    box-shadow: var(--glow-accent);
    transition: var(--transition-smooth);
}

.use-case-stat-icon i {
    font-size: 0.75rem;
    color: white;
    transition: var(--transition-smooth);
}

.use-case-stat:hover .use-case-stat-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.use-case-stat:hover .use-case-stat-icon i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
}

.use-case-stat .stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.use-case-stat .stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.3;
}

.use-case-image {
    position: relative;
}

.floating-testimonial {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 1rem;
    animation: float 6s ease-in-out infinite 1.5s;
    max-width: 280px;
}

.testimonial-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.375rem;
    line-height: 1.2;
}

.testimonial-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

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

.author-avatar {
    width: 1.5rem;
    height: 1.5rem;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
}

.author-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.author-role {
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.6);
}

.floating-stats-card {
    position: absolute;
    top: -1rem;
    right: -1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    animation: float 5s ease-in-out infinite;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    max-width: 120px;
}

.floating-stats-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.floating-stats-icon {
    width: 1.5rem;
    height: 1.5rem;
    background: var(--gradient-primary);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    box-shadow: var(--glow-accent);
    transition: var(--transition-smooth);
}

.floating-stats-icon i {
    font-size: 0.75rem;
    color: white;
    transition: var(--transition-smooth);
}

.floating-stats-card:hover .floating-stats-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.floating-stats-card:hover .floating-stats-icon i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
}

.floating-stats-card .stats-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.125rem;
}

.floating-stats-card .stats-label {
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
    background: hsl(var(--background));
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, hsl(var(--primary) / 0.3), transparent);
}

.testimonials .section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 10;
}

.rating-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    padding: 1rem 2rem;
    display: inline-flex;
}

.rating-summary .stars {
    display: flex;
    gap: 0.25rem;
}

.rating-summary .star {
    color: #fbbf24;
    fill: currentColor;
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.3));
}

.rating-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
}

.rating-count {
    color: hsl(var(--muted-foreground));
    font-weight: 500;
}

/* Testimonials Carousel */
.testimonials-carousel {
    position: relative;
    margin-bottom: 4rem;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 2rem;
}

.testimonial-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    min-width: calc(33.333% - 1.33rem);
    flex: 0 0 calc(33.333% - 1.33rem);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

@media (max-width: 1024px) {
    .testimonial-card {
        min-width: calc(50% - 1rem);
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        min-width: 100%;
        flex: 0 0 100%;
    }
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: hsl(var(--primary) / 0.3);
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.testimonial-rating .star {
    color: #fbbf24;
    fill: currentColor;
    width: 1.125rem;
    height: 1.125rem;
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.3));
    transition: var(--transition-smooth);
}

.testimonial-rating .star:hover {
    transform: scale(1.1);
}

.testimonial-content {
    font-size: 1.125rem;
    line-height: 1.7;
    color: hsl(var(--foreground));
    margin-bottom: 2rem;
    font-style: italic;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 4rem;
    color: hsl(var(--primary) / 0.2);
    position: absolute;
    top: -1rem;
    left: -0.5rem;
    font-family: serif;
    line-height: 1;
}

.testimonial-content::after {
    content: '"';
    font-size: 4rem;
    color: hsl(var(--primary) / 0.2);
    position: absolute;
    bottom: -2rem;
    right: -0.5rem;
    font-family: serif;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid hsl(var(--border) / 0.5);
}

.author-avatar {
    width: 3rem;
    height: 3rem;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.author-avatar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.author-avatar:hover::before {
    transform: translateX(100%);
}

.author-name {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
}

.author-role {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.25rem;
}

.author-company {
    font-size: 0.875rem;
    color: hsl(var(--primary));
    font-weight: 500;
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.carousel-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: hsl(var(--primary));
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: hsl(var(--muted-foreground) / 0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.indicator.active {
    background: hsl(var(--primary));
    transform: scale(1.2);
}

.indicator:hover {
    background: hsl(var(--primary) / 0.7);
    transform: scale(1.1);
}

.testimonials-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding-top: 3rem;
    border-top: 1px solid hsl(var(--border));
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .testimonials-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.testimonial-stat {
    position: relative;
    padding: 1rem;
    border-radius: 0.75rem;
    transition: var(--transition-smooth);
}

.testimonial-stat:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.testimonial-stat .stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.testimonial-stat .stat-label {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0f172a, #1e293b, #7c3aed, #1e293b, #0f172a);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.3);
}

.cta-background {
    position: absolute;
    inset: 0;
}

.cta-gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    opacity: 0.6;
}

.cta-pattern {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 80% at 50% -20%, rgba(120, 119, 198, 0.15), rgba(255, 255, 255, 0));
}

.cta-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    z-index: 2;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
}

.cta-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.2);
}

.cta-badge svg {
    color: #fbbf24;
}

.cta-title {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.cta-title .gradient-text {
    background: linear-gradient(135deg, #ffffff, #e0e7ff, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 10px rgba(124, 58, 237, 0.3));
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 2.75rem;
    }
}

@media (min-width: 1024px) {
    .cta-title {
        font-size: 3.25rem;
    }
}

.cta-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-weight: 400;
}

@media (min-width: 1024px) {
    .cta-description {
        font-size: 1.125rem;
    }
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 0.75rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.cta-trust {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 640px) {
    .cta-trust {
        flex-direction: row;
        justify-content: center;
    }
}

.trust-item {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.trust-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.cta-final-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1.5rem;
}

@media (min-width: 640px) {
    .cta-final-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

.final-stat {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.final-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.final-stat:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.final-stat:hover::before {
    transform: scaleX(1);
}

.final-stat .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.final-stat .stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* FontAwesome Icons */
.fas,
.far,
.fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands";
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.far {
    font-weight: 400;
}

.fab {
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
}

/* Enhanced Font Visibility */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: hsl(var(--foreground));
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.section-title {
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.section-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.7;
    font-weight: 400;
    color: hsl(var(--muted-foreground));
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.testimonial-content {
    font-size: 1.125rem;
    line-height: 1.7;
    font-weight: 400;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Enhanced Star Ratings */
.testimonial-rating .fas.fa-star {
    color: #fbbf24;
    font-size: 1rem;
    margin-right: 0.25rem;
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.3));
    transition: var(--transition-smooth);
}

.testimonial-rating .fas.fa-star:hover {
    transform: scale(1.1);
}

.rating-summary .fas.fa-star {
    color: #fbbf24;
    font-size: 1.5rem;
    margin-right: 0.25rem;
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.3));
}

/* Enhanced Carousel Controls */
.carousel-btn i {
    font-size: 1.25rem;
    transition: var(--transition-smooth);
}

.carousel-btn:hover i {
    transform: scale(1.1);
}

/* Process Step Icons - Enhanced */
.step-item:hover .step-icon {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

.step-item:hover .step-icon i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

/* Hero Section Icons */
.trust-badge .stars i {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-right: 0.25rem;
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.3));
}

.url-input-section .input-wrapper .youtube-icon {
    color: #ef4444;
    font-size: 1.25rem;
}

.btn i {
    /* margin-left: 0.5rem; */
    transition: var(--transition-smooth);
}

.btn:hover i {
    transform: translateX(2px);
}

/* Enhanced Animations and Polish */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out;
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Enhanced Section Styling */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(120, 119, 198, 0.1), transparent);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(236, 72, 153, 0.05) 50%, transparent 100%);
    pointer-events: none;
}

.professionals {
    position: relative;
}

.professionals::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, hsl(var(--primary) / 0.3), transparent);
}

.process-steps {
    position: relative;
    background: linear-gradient(135deg, hsl(var(--background)), hsl(var(--muted) / 0.3));
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, hsl(var(--primary) / 0.3), transparent);
}

.faq {
    position: relative;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, hsl(var(--primary) / 0.3), transparent);
}

/* Enhanced Button Styles */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: scale(0.98);
}

/* Enhanced Card Styles */
.testimonial-card,
.faq-item,
.process-step {
    position: relative;
    overflow: hidden;
}

.testimonial-card::after,
.faq-item::after,
.process-step::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.02), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.testimonial-card:hover::after,
.faq-item:hover::after,
.process-step:hover::after {
    opacity: 1;
}

/* Enhanced Input Styles */
.input-group input {
    position: relative;
    transition: all 0.3s ease;
}

.input-group input:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.input-group input:focus+.input-icon {
    transform: scale(1.1);
    color: hsl(var(--primary));
}

/* Enhanced Statistics */
.stat-item {
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.stat-item:hover::before {
    left: 100%;
}

/* Enhanced Floating Elements */
.floating-youtube,
.floating-stats,
.floating-speed {
    animation: float 6s ease-in-out infinite;
}

.floating-youtube {
    animation-delay: 0s;
}

.floating-stats {
    animation-delay: 2s;
}

.floating-speed {
    animation-delay: 4s;
}

/* Enhanced Gradient Text */
.gradient-text {
    position: relative;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

.gradient-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(1px);
    opacity: 0.3;
    z-index: -1;
}

/* Enhanced Glass Morphism */
.glass {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    border-radius: inherit;
    pointer-events: none;
}

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

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hover-scale {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Enhanced Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 1.5s infinite;
}

/* Enhanced Focus States */
.focus-visible {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 2px;
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: hsl(var(--muted));
}

::-webkit-scrollbar-thumb {
    background: hsl(var(--primary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--primary) / 0.8);
}

/* Enhanced Selection */
::selection {
    background: hsl(var(--primary) / 0.2);
    color: hsl(var(--foreground));
}

/* Enhanced Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    .hero,
    .professionals,
    .process-steps,
    .testimonials,
    .cta-section {
        break-inside: avoid;
    }
}

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

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 2rem 0;
        min-height: auto;
    }

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

    .hero-description {
        font-size: 1rem;
    }

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

    .professionals {
        padding: 3rem 0;
    }

    .process-steps {
        padding: 3rem 0;
    }

    .faq {
        padding: 3rem 0;
    }

    .faq-list {
        gap: 0.75rem;
        margin-bottom: 2.5rem;
    }

    .faq-question {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }

    .faq-icon {
        width: 1.75rem;
        height: 1.75rem;
    }

    .faq-answer p {
        padding: 0 1.25rem 1.25rem;
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .faq-cta {
        padding: 1.5rem 1.25rem;
    }

    .faq-cta h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .faq-cta p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .faq-buttons {
        gap: 0.75rem;
    }


    .discord-button {
        align-self: center;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    .hero-container {
        padding: 0 1rem;
    }

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

    .hero-description {
        font-size: 0.875rem;
    }

    .input-container {
        flex-direction: column;
    }

    .additional-options {
        flex-direction: column;
    }

    .trust-indicators {
        grid-template-columns: 1fr;
    }

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

    .bottom-stats {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .bottom-stat {
        padding: 1rem;
    }

    .bottom-stat-icon {
        width: 3rem;
        height: 3rem;
        margin-bottom: 0.75rem;
    }

    .bottom-stat-icon i {
        font-size: 1.25rem;
    }

    .cta-section {
        padding: 3rem 0;
    }

    .cta-title {
        font-size: 1.875rem;
        margin-bottom: 1rem;
    }

    .cta-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .cta-buttons {
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .btn-large {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .cta-trust {
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .trust-item {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .cta-final-stats {
        gap: 1rem;
        padding-top: 1.5rem;
        margin-top: 1rem;
    }

    .final-stat {
        padding: 1rem 0.75rem;
    }

    .professional-use-case {
        padding: 1.5rem 0;
    }

    .professional-use-case .section-title {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 0.5rem;
        color: white;
        height: calc(2rem * 1.1 * 2);
    }

    .professional-use-case .section-description {
        font-size: 0.85rem;
        line-height: 1.3;
        margin-bottom: 0.25rem;
        color: rgba(255, 255, 255, 0.9);
    }

    .use-case-grid {
        gap: 1.25rem;
    }

    .use-case-content {
        gap: 0.75rem;
    }

    .floating-testimonial {
        max-width: 240px;
        padding: 0.75rem;
        bottom: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
    }

    .floating-stats-card {
        max-width: 100px;
        padding: 0.75rem;
        top: -0.75rem;
        right: -0.75rem;
    }

    .use-case-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding-top: 0.75rem;
    }

    .use-case-stat {
        padding: 0.5rem;
    }

    .use-case-stat-icon {
        width: 1.5rem;
        height: 1.5rem;
        margin-bottom: 0.375rem;
    }

    .use-case-stat-icon i {
        font-size: 0.625rem;
    }

    .use-case-icon {
        width: 1.75rem;
        height: 1.75rem;
    }

    .use-case-icon i {
        font-size: 0.75rem;
    }

    .use-case-text {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .floating-stats-card {
        padding: 1rem;
        top: -1rem;
        right: -1rem;
    }

    .floating-stats-icon {
        width: 1.75rem;
        height: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .floating-stats-icon i {
        font-size: 0.75rem;
    }
}

/* Force navigation links to be clickable */
.nav-link {
    pointer-events: auto !important;
    z-index: 9999 !important;
    position: relative !important;
    display: inline-block !important;
    cursor: pointer !important;
}

/* Ensure no overlapping elements block navigation */
.navbar {
    pointer-events: auto !important;
}

.nav-menu {
    pointer-events: auto !important;
}

.nav-container {
    pointer-events: auto !important;
}

/* History Page Styles */
.history-section {
    padding: 2rem 0;
    min-height: calc(100vh - 3.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, hsl(var(--background)), hsl(var(--muted) / 0.3));
    position: relative;
}

.history-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, hsl(var(--primary) / 0.3), transparent);
}

.history-container {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding: 2rem;
}

.empty-message {
    margin-bottom: 1rem;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.empty-subtitle {
    font-size: 1rem;
    color: hsl(var(--muted-foreground) / 0.8);
    font-weight: 400;
    line-height: 1.4;
}

.history-input-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.history-input-section .input-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.65rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
    width: 100%;
}

.dark .history-input-section .input-container {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 540px) {
    .history-input-section .input-container {
        flex-direction: row;
    }
}

.history-input-section .input-wrapper {
    flex: 1;
    position: relative;
}

.history-input-section .youtube-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #ef4444;
    font-size: 1.25rem;
    pointer-events: none;
    z-index: 2;
}

.history-input-section .url-input {
    width: 100%;
    height: 3.5rem;
    padding: 0 1.25rem 0 3.5rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    background: transparent;
    color: hsl(var(--foreground));
    outline: none;
    border-radius: 0.75rem;
}

.history-input-section .url-input::placeholder {
    color: hsl(var(--muted-foreground) / 0.7);
}

.history-input-section .btn-extract {
    background: #ef4444;
    color: white;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.history-input-section .btn-extract:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px 0 rgba(239, 68, 68, 0.4);
}

.history-input-section .btn-extract:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.history-input-section .btn-extract i {
    transition: transform 0.2s ease;
}

.history-input-section .btn-extract:hover i {
    transform: translateX(4px);
}

/* History list view */
.history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2rem 0 1.5rem 0;
}

.history-title {
    font-size: 2rem;
    font-weight: 800;
    color: hsl(var(--foreground));
}

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

.history-actions .btn.btn-danger {
    background: #991b1b;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 0.875rem;
    cursor: pointer;
}

.history-actions .btn.btn-warning {
    background: #d97706;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-actions .btn.btn-warning:hover {
    background: #b45309;
    transform: translateY(-1px);
}

.history-layout {
    display: block;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.history-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.875rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.history-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: hsl(var(--muted));
    overflow: hidden;
    border-bottom: 1px solid hsl(var(--border));
}

.history-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.history-check {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 1rem;
    height: 1rem;
}

.history-body {
    padding: 0.875rem;
}

.history-title-text {
    font-size: 1rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    line-height: 1.35;
    min-height: 2.7rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.history-actions-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.6rem;
}

.history-actions-row .btn {
    border: 1px solid hsl(var(--border));
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    padding: 0.45rem 0.7rem;
    font-size: 0.9rem;
    border-radius: 0.55rem;
}

.history-actions-row .download-btn {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.history-actions-row .go-btn {
    flex: 1;
    white-space: nowrap;
}

.history-upsell {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.history-upsell .upsell-card {
    position: sticky;
    top: auto;
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 1rem;
    background: hsl(var(--card));
    max-width: 600px;
    width: 100%;
}

.upsell-badge {
    display: inline-block;
    background: #f43f5e;
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    margin-bottom: 0.5rem;
}

.upsell-features {
    margin: 0.5rem 0 1rem 1.1rem;
}

/* ===== PAGINATION STYLES ===== */
.pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.5rem 0;
}

.pagination-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(224, 33, 138, 0.2);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.pagination-container:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
    border-color: rgba(224, 33, 138, 0.3);
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 40px;
}

.pagination-btn:hover:not(.pagination-btn--disabled) {
    background: #f8f9fa;
    border-color: rgba(224, 33, 138, 0.4);
    color: #E0218A;
    transform: translateY(-1px);
}

.pagination-btn--disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f9fafb;
    border-color: #e5e7eb;
}

.pagination-btn--disabled:hover {
    transform: none;
    background: #f9fafb;
}

.pagination-icon {
    transition: transform 0.2s ease;
}

.pagination-btn:hover:not(.pagination-btn--disabled) .pagination-icon {
    transform: translateX(-1px);
}

.pagination-btn--next:hover:not(.pagination-btn--disabled) .pagination-icon {
    transform: translateX(1px);
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0 0.5rem;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pagination-number:hover {
    background: #f8f9fa;
    border-color: rgba(224, 33, 138, 0.4);
    color: #E0218A;
    transform: translateY(-1px);
}

.pagination-number--active {
    background: linear-gradient(135deg, #E0218A 0%, #FF1493 100%);
    border-color: #E0218A;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(224, 33, 138, 0.3);
}

.pagination-number--active:hover {
    background: linear-gradient(135deg, #C71585 0%, #E0218A 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(224, 33, 138, 0.4);
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #9ca3af;
    font-weight: 500;
    font-size: 0.875rem;
}

.pagination-info {
    text-align: center;
}

.pagination-info-text {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .pagination-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
        padding: 0.75rem;
    }

    .pagination-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        min-height: 36px;
    }

    .pagination-text {
        display: none;
    }

    .pagination-numbers {
        margin: 0 0.25rem;
        gap: 0.125rem;
    }

    .pagination-number {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .pagination-ellipsis {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .pagination-info-text {
        font-size: 0.8rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .pagination-container {
        background: rgba(17, 24, 39, 0.95);
        border-color: rgba(224, 33, 138, 0.3);
    }

    .pagination-btn {
        color: #9ca3af;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .pagination-btn:hover:not(.pagination-btn--disabled) {
        background: rgba(55, 65, 81, 0.5);
        border-color: rgba(224, 33, 138, 0.4);
        color: #FF69B4;
    }

    .pagination-btn--disabled {
        background: rgba(31, 41, 55, 0.5);
        border-color: rgba(255, 255, 255, 0.05);
    }

    .pagination-number {
        color: #9ca3af;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .pagination-number:hover {
        background: rgba(55, 65, 81, 0.5);
        border-color: rgba(224, 33, 138, 0.4);
        color: #FF69B4;
    }

    .pagination-ellipsis {
        color: #6b7280;
    }

    .pagination-info-text {
        color: #9ca3af;
    }
}

@media (max-width: 1024px) {
    .history-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

/* Responsive adjustments for history page */
@media (max-width: 768px) {
    .history-section {
        padding: 2rem 0;
        min-height: calc(100vh - 3.5rem);
    }

    .empty-state {
        gap: 2rem;
        padding: 1rem;
    }

    .empty-title {
        font-size: 1.25rem;
    }

    .empty-subtitle {
        font-size: 0.9rem;
    }

    .history-input-section .input-container {
        flex-direction: column;
    }

    .history-input-section .btn-extract {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .history-container {
        padding: 0 1rem;
    }

    .empty-title {
        font-size: 1.125rem;
    }

    .empty-subtitle {
        font-size: 0.875rem;
    }
}

/* Bulk Page Styles */
.bulk-section {
    padding: 1rem 0;
    min-height: calc(100vh - 3.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, hsl(var(--background)), hsl(var(--muted) / 0.3));
    position: relative;
}

/* Dark mode for bulk section */
.dark .bulk-section {
    background: linear-gradient(135deg, hsl(var(--background)), hsl(var(--muted) / 0.5));
    color: hsl(var(--foreground));
}

/* Auth (Login/Signup) */
.auth-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 4rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.auth-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
}

.auth-input {
    height: 48px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    color: hsl(var(--foreground));
}

.auth-link.small {
    font-size: 0.9rem;
    color: #ef3b67;
    text-decoration: underline dotted;
    width: max-content;
}

.auth-submit {
    height: 52px;
    width: 100%;
    background: #ef3b67;
    border: none;
}


.oauth-btn {
    width: 100%;
    height: 56px;
    border-radius: 12px;
    border: 1px solid hsl(var(--border));
    background: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    font-weight: 500;
    margin-bottom: 1rem;
    cursor: pointer;
    outline: none;
    font-family: inherit;
}

/* Google button: beautiful and modern */
.oauth-btn.google {
    background: #ffffff;
    border: 1px solid #dadce0;
    color: #3c4043;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    text-decoration: none;
}

.oauth-btn.google::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(66, 133, 244, 0.1), transparent);
    transition: left 0.5s ease;
}

.oauth-btn.google:hover {
    background: #f8f9fa;
    border-color: #c1c8cd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    transform: translateY(-1px);
}

.oauth-btn.google:hover::before {
    left: 100%;
}

.oauth-btn.google:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.oauth-btn.google i {
    color: #4285f4;
    font-size: 1.1rem;
    margin-right: 2px;
    transition: all 0.3s ease;
}

.oauth-btn.google:hover i {
    color: #3367d6;
    transform: scale(1.05);
}

/* ==============================
   Pricing Page Styles
   ============================== */
.pricing-hero {
    padding: 5rem 0 2.25rem;
    position: relative;
}

.pricing-hero .section-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--muted-foreground));
    font-size: 12px;
    margin-bottom: 0.75rem;
}

.pricing-hero .hero-title {
    font-size: 2.25rem;
    line-height: 1.2;
    margin: 0 0 0.5rem;
    text-align: left;
}

.pricing-hero .hero-description {
    color: hsl(var(--muted-foreground));
    max-width: 720px;
}

.pricing-plans {
    padding: 1rem 0 2rem;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.pricing-toggle .toggle-label {
    color: hsl(var(--muted-foreground));
    font-weight: 500;
}

/* New segmented toggle */
.segmented-toggle {
    position: relative;
    display: inline-grid;
    grid-auto-flow: column;
    background: #f7f8fa;
    border: 1px solid #d9dee5;
    border-radius: 999px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.segmented-toggle input {
    display: none;
}

.segmented-toggle label {
    position: relative;
    z-index: 1;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    user-select: none;
    transition: color 150ms ease, font-weight 150ms ease;
}

.segmented-toggle .segmented-active {
    position: absolute;
    z-index: 0;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 4px);
    border-radius: 999px;
    background: #ef3b67;
    border: 1px solid #ef3b67;
    box-shadow: 0 4px 10px rgba(239, 59, 103, 0.28);
    transition: left 180ms cubic-bezier(.2, .8, .2, 1), background 120ms ease;
    will-change: left;
}

.segmented-toggle #bill-monthly:checked~.segmented-active {
    left: 4px;
}

.segmented-toggle #bill-yearly:checked~.segmented-active {
    left: calc(50%);
}

.segmented-toggle #bill-monthly:checked~label[for="bill-monthly"] {
    color: #ffffff;
    font-weight: 600;
}

.segmented-toggle #bill-yearly:checked~label[for="bill-yearly"] {
    color: #ffffff;
    font-weight: 600;
}

.segmented-toggle label .discount-badge {
    display: none;
}

.segmented-toggle label:hover {
    color: hsl(var(--foreground));
}

.segmented-toggle:focus-within {
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.2), 0 2px 10px rgba(0, 0, 0, 0.06);
}

.toggle-switch {
    /* position: relative; */
    width: 64px;
    height: 34px;
}

.toggle-switch input {
    display: none;
}

.toggle-slider {
    /* position: absolute; */
    inset: 0;
    background: linear-gradient(180deg, #f6f7fb 0%, #eceff6 100%);
    border: 1px solid hsl(var(--border));
    border-radius: 999px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Animated color fill inside the track */
.toggle-slider::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #34d399 0%, #60a5fa 50%, #a78bfa 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 999px;
    transition: left 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: scaleX(1);
}

.toggle-switch input:checked+.toggle-slider::after {
    left: 33px;
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow: 0 3px 10px rgba(96, 165, 250, 0.25), 0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.toggle-switch input:checked+.toggle-slider {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.18) inset;
}

.toggle-switch:focus-within .toggle-slider {
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.25), inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.toggle-slider:hover::after {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

/* Toggle label emphasis */
.pricing-toggle .toggle-label {
    padding: 4px 8px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.pricing-toggle .toggle-label:first-of-type {
    opacity: 1;
    font-weight: 600;
    background: hsl(var(--primary) / 0.10);
    color: hsl(var(--primary));
}

.pricing-toggle .toggle-label:last-of-type {
    opacity: 0.75;
}

.pricing-toggle:has(#pricingToggle:checked) .toggle-label:first-of-type {
    opacity: 0.6;
}

.pricing-toggle:has(#pricingToggle:checked) .toggle-label:last-of-type {
    opacity: 1;
    color: hsl(var(--primary));
    font-weight: 700;
    background: hsl(var(--primary) / 0.10);
}

/* Pricing grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.1rem;
}

.pricing-card {
    grid-column: span 12;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 16px;
    padding: 1.1rem;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

@media (min-width: 640px) {
    .pricing-card {
        grid-column: span 6;
    }
}

@media (min-width: 1024px) {
    .pricing-card {
        grid-column: span 3;
    }
}

/* Wider single column spacing for medium screens */
@media (max-width: 1023.98px) {
    .pricing-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .pricing-card {
        grid-column: span 6;
    }
}

.pricing-card:hover {
    border-color: hsl(var(--primary) / 0.6);
    box-shadow: 0 10px 30px hsl(var(--primary) / 0.15);
    transform: translateY(-2px);
}

.pricing-card:focus-within {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 2px hsl(var(--primary) / 0.35);
}

.pricing-card.popular {
    border-color: hsl(var(--primary));
    box-shadow: 0 12px 36px hsl(var(--primary) / 0.28);
}

/* Responsive tweaks for Pricing page */
@media (max-width: 768px) {
    .pricing-hero {
        padding: 3.5rem 0 1.5rem;
    }

    .pricing-hero .hero-title {
        font-size: 1.75rem;
        text-align: left;
    }

    .pricing-hero .hero-description {
        font-size: 0.95rem;
    }

    .pricing-grid {
        gap: 0.9rem;
    }

    .pricing-card {
        padding: 1rem;
    }

    .plan-price .price-amount {
        font-size: 1.8rem;
    }

    .plan-features {
        gap: 0.4rem;
    }

    .feature-item {
        font-size: 0.95rem;
    }

    .segmented-toggle label {
        padding: 8px 14px;
        font-size: 0.95rem;
    }

    .pricing-toggle {
        padding: 0 0.25rem;
    }
}

@media (max-width: 480px) {
    .pricing-hero {
        padding: 3rem 0 1.25rem;
    }

    .pricing-hero .hero-title {
        font-size: 1.5rem;
    }

    .pricing-hero .hero-description {
        font-size: 0.925rem;
    }

    .segmented-toggle {
        width: 100%;
        grid-auto-columns: 1fr;
    }

    .segmented-toggle label {
        text-align: center;
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .segmented-toggle .segmented-active {
        width: calc(50% - 4px);
    }

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

    .pricing-card {
        grid-column: span 12;
        padding: 0.9rem;
    }

    .plan-price .price-amount {
        font-size: 1.6rem;
    }

    .plan-description {
        font-size: 0.95rem;
    }

    .plan-btn {
        height: 42px;
    }
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: hsl(var(--primary));
    color: #fff;
    font-size: 12px;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 14px hsl(var(--primary) / 0.35);
}

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

.plan-name {
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.plan-description {
    color: hsl(var(--muted-foreground));
    margin: 0.4rem 0 0;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.price-currency {
    opacity: 0.7;
}

.price-amount {
    font-size: 2rem;
    font-weight: 800;
}

.price-period {
    color: hsl(var(--muted-foreground));
    margin-left: 4px;
}

/* Monthly/Yearly toggle behavior */
.price-amount.yearly-price {
    display: none;
}

/* Show yearly prices when yearly radio is active */
.pricing-plans .container:has(#bill-yearly:checked) .monthly-price {
    display: none;
}

.pricing-plans .container:has(#bill-yearly:checked) .yearly-price {
    display: inline-block;
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.75rem 0 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: hsl(var(--muted-foreground));
}

.feature-item i {
    color: hsl(var(--primary));
}

.plan-btn {
    width: 100%;
    height: 44px;
    margin-top: 0.25rem;
    font-weight: 900;
}

.plan-btn:hover {
    color: white;
}

.discount-badge {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
    background: hsl(var(--primary) / 0.12);
    color: hsl(var(--primary));
    border: 1px solid hsl(var(--primary) / 0.25);
}

/* Comparison table */
.features-comparison {
    padding: 2rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 1rem;
}

.section-title {
    margin: 0 0 0.25rem;
    font-size: 1.5rem;
}

.section-description {
    color: hsl(var(--muted-foreground));
    margin: 0;
}

.comparison-table {
    border: 1px solid hsl(var(--border));
    border-radius: 12px;
    overflow: auto;
    display: block;
}

.table-header,
.table-row {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 0;
}

.table-header {
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1;
}

.table-header>div {
    padding: 0.75rem;
    border-right: 1px solid hsl(var(--border));
}

.table-header>div:last-child {
    border-right: none;
}

.table-header .plan-column.popular {
    color: hsl(var(--primary));
}

.table-row:nth-child(odd) {
    background: hsl(var(--background));
}

.table-row:nth-child(even) {
    background: hsl(var(--muted) / 0.2);
}

.table-row>div {
    padding: 0.75rem;
    border-top: 1px solid hsl(var(--border));
    border-right: 1px solid hsl(var(--border));
}

.table-row>div:last-child {
    border-right: none;
}

.feature-name {
    font-weight: 500;
}

.plan-value {
    text-align: center;
}

@media (max-width: 640px) {

    .table-header,
    .table-row {
        grid-template-columns: 1.5fr repeat(4, 0.9fr);
    }
}

/* FAQ */
.faq {
    padding: 2rem 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq-item {
    border: 1px solid hsl(var(--border));
    border-radius: 12px;
    overflow: hidden;
    background: hsl(var(--card));
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0.9rem 1rem;
    background: transparent;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.faq-question:hover {
    background: hsl(var(--muted) / 0.3);
}

.faq-question:focus-visible {
    outline: 2px solid hsl(var(--primary));
    outline-offset: -2px;
}

.faq-answer {
    display: none;
    padding: 0 1rem 1rem;
    color: hsl(var(--muted-foreground));
}

/* Optional open state if JS adds a class */
.faq-item.active .faq-answer {
    display: block;
}

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

.faq-question .faq-icon {
    transition: transform 0.2s ease;
}

/* CTA */
.cta-section {
    position: relative;
    padding: 2.5rem 0;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 60% at 50% 30%, hsl(var(--primary) / 0.10), transparent 60%);
}

.cta-pattern {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(transparent 0 23px, hsl(var(--border)) 24px), linear-gradient(90deg, transparent 0 23px, hsl(var(--border)) 24px);
    background-size: 24px 24px;
    opacity: 0.1;
}

.cta-content {
    position: relative;
    text-align: center;
}

.cta-title {
    font-size: 1.75rem;
    margin: 0 0 0.5rem;
}

.cta-description {
    color: hsl(var(--muted-foreground));
    margin: 0 auto 1rem;
    max-width: 720px;
}

.cta-buttons {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
}

.oauth-btn i {
    font-size: 18px;
}

.auth-switch {
    text-align: center;
    margin-top: 0.5rem;
}

.bulk-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, hsl(var(--primary) / 0.3), transparent);
}

.bulk-container {
    max-width: 1600px;
    width: 100%;
    text-align: center;
}

/* Dark mode for bulk container */
.dark .bulk-container {
    color: hsl(var(--foreground));
}

/* Experimental Feature Banner */
.experimental-banner {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.dark .experimental-banner {
    background: #2d3748;
    border-color: #4a5568;
}

.banner-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.banner-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #6c757d;
    margin-top: 0.125rem;
}

.banner-text {
    flex: 1;
}

.banner-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
}

.banner-description {
    font-size: 0.8rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.4;
}

.underline-link {
    text-decoration: underline;
    color: #ef4444;
    cursor: pointer;
}

.underline-link:hover {
    color: #dc2626;
}

/* Playlist Input Section */
.playlist-input-section {
    margin-bottom: 2rem;
}

.playlist-input-section .input-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(24px);
    border: 1px solid #ef4444;
    border-radius: 1rem;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
    margin-bottom: 1rem;
}

.dark .playlist-input-section .input-container {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #ef4444;
}

@media (min-width: 640px) {
    .playlist-input-section .input-container {
        flex-direction: row;
    }
}

.playlist-input-section .input-wrapper {
    flex: 1;
    position: relative;
}

.link-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #3b82f6;
    font-size: 1.25rem;
    pointer-events: none;
    z-index: 2;
}

.playlist-input {
    width: 100%;
    height: 3.5rem;
    padding: 0 1.25rem 0 3.5rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    background: transparent;
    color: hsl(var(--foreground));
    outline: none;
    border-radius: 0.75rem;
}

.playlist-input::placeholder {
    color: hsl(var(--muted-foreground) / 0.7);
}

.btn-get-playlist {
    background: #ef4444;
    color: white;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-get-playlist:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px 0 rgba(239, 68, 68, 0.4);
}

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

.playlist-help {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.4;
}

.dotted-link {
    color: #ef4444;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
    cursor: pointer;
}

.dotted-link:hover {
    color: #dc2626;
}

/* Separator */
.separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    position: relative;
}

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

.separator span {
    padding: 0 1rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    background: hsl(var(--background));
    font-weight: 500;
}

/* CSV Upload Section */
.csv-upload-section {
    margin-bottom: 2rem;
}

.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 1rem;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.dark .upload-area {
    background: rgba(0, 0, 0, 0.3);
    border-color: #4a5568;
}

.upload-area:hover {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.02);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-icon {
    color: #6b7280;
    transition: color 0.3s ease;
}

.upload-area:hover .upload-icon {
    color: #ef4444;
}

.upload-text {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    text-align: center;
    line-height: 1.5;
}

.upload-link {
    color: #ef4444;
    text-decoration: underline;
    cursor: pointer;
}

.upload-link:hover {
    color: #dc2626;
}

/* Token Information */
.token-info {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: left;
}

.dark .token-info {
    background: rgba(0, 0, 0, 0.3);
}

.token-info p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin: 0;
}

/* Responsive adjustments for bulk page */
@media (max-width: 768px) {
    .bulk-section {
        padding: 2rem 0;
        min-height: calc(100vh - 3.5rem);
    }

    .bulk-container {
        padding: 0 1rem;
        max-width: 100%;
    }

    .experimental-banner {
        padding: 0.75rem 1rem;
        margin-bottom: 1.5rem;
    }

    .banner-content {
        gap: 0.5rem;
    }

    .banner-title {
        font-size: 0.8rem;
    }

    .banner-description {
        font-size: 0.75rem;
    }

    .playlist-input-section .input-container {
        flex-direction: column;
    }

    .btn-get-playlist {
        width: 100%;
        justify-content: center;
    }

    .upload-area {
        padding: 2rem 1rem;
    }

    .upload-text {
        font-size: 0.9rem;
    }

    .token-info {
        padding: 1rem;
    }

    .token-info p {
        font-size: 0.8rem;
    }
}

@media (max-width: 640px) {
    .bulk-container {
        max-width: 100%;
    }

    .playlist-input {
        font-size: 0.9rem;
    }

    .btn-get-playlist {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }

    .upload-area {
        padding: 1.5rem 0.75rem;
    }

    .upload-icon {
        width: 40px;
        height: 40px;
    }

    .upload-text {
        font-size: 0.85rem;
    }
}

/* Channel Page Styles */
.channel-section {
    padding: 4rem 0;
    min-height: calc(100vh - 3.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, hsl(var(--background)), hsl(var(--muted) / 0.3));
    position: relative;
}

.channel-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, hsl(var(--primary) / 0.3), transparent);
}

.channel-container {
    max-width: 800px;
    width: 100%;
    text-align: center;
    padding: 2rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px hsl(var(--foreground) / 0.1), 0 2px 4px -1px hsl(var(--foreground) / 0.06);
    position: relative;
    overflow: hidden;
}

.channel-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, hsl(var(--primary)), transparent);
}

.channel-title {
    font-size: 2rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
    line-height: 1.2;
}

.channel-description {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
    line-height: 1.6;
}

.channel-input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: stretch;
}

.channel-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.channel-input-icon {
    position: absolute;
    left: 1rem;
    color: #3b82f6;
    z-index: 2;
    pointer-events: none;
}

.channel-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid #e11d48;
    border-radius: 0.5rem;
    background: white;
    color: hsl(var(--foreground));
    font-size: 1rem;
    transition: all 0.2s ease;
    outline: none;
}

.channel-input:focus {
    border-color: #be185d;
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.channel-input::placeholder {
    color: hsl(var(--muted-foreground));
}

.channel-btn {
    padding: 0.875rem 1.5rem;
    background: #e11d48;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 140px;
}

.channel-btn:hover:not(:disabled) {
    background: #be185d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px hsl(var(--primary) / 0.3);
}

.channel-btn:active:not(:disabled) {
    transform: translateY(0);
}

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

.channel-note {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
    line-height: 1.5;
}

/* Channel Page Responsive */
@media (max-width: 640px) {
    .channel-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .channel-title {
        font-size: 1.5rem;
    }

    .channel-description {
        font-size: 0.875rem;
    }

    .channel-input-group {
        flex-direction: column;
        gap: 1rem;
    }

    .channel-input-wrapper {
        width: 100%;
    }

    .channel-btn {
        width: 100%;
        padding: 0.75rem 1.5rem;
    }
}

/* API Documentation Styles */
.api-section {
    padding: 4rem 0;
    min-height: calc(100vh - 3.5rem);
    background: linear-gradient(135deg, hsl(var(--background)), hsl(var(--muted) / 0.3));
    position: relative;
}

.api-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, hsl(var(--primary) / 0.3), transparent);
}

.api-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.api-doc {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px hsl(var(--foreground) / 0.1), 0 2px 4px -1px hsl(var(--foreground) / 0.06);
    position: relative;
    overflow: hidden;
}

.api-doc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, hsl(var(--primary)), transparent);
}

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

.api-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin: 0;
}

.plus-badge {
    background: #10b981;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.4);
}

.api-description {
    margin-bottom: 1.5rem;
}

.api-description p {
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin: 0;
}

.api-endpoint {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: hsl(var(--muted) / 0.3);
    border-radius: 0.5rem;
    border-left: 4px solid hsl(var(--primary));
}

.http-method {
    background: #10b981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.endpoint-url {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 1rem;
    color: hsl(var(--foreground));
    font-weight: 500;
}

.api-section-content {
    margin-bottom: 2rem;
}

.api-section-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid hsl(var(--border));
}

.api-param {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: hsl(var(--muted) / 0.1);
    border-radius: 0.5rem;
    border: 1px solid hsl(var(--border) / 0.5);
}

.param-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.param-name code {
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    font-weight: 600;
}

.required {
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
}

.param-description {
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    font-size: 0.9rem;
}

.param-description code {
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8rem;
}

.api-limits {
    margin-top: 1rem;
    padding: 1rem;
    background: hsl(var(--primary) / 0.05);
    border: 1px solid hsl(var(--primary) / 0.2);
    border-radius: 0.5rem;
}

.api-limits p {
    margin: 0;
    color: hsl(var(--foreground));
    font-size: 0.9rem;
    line-height: 1.5;
}

.rate-limit {
    padding: 1rem;
    background: hsl(var(--muted) / 0.1);
    border-radius: 0.5rem;
    border: 1px solid hsl(var(--border) / 0.5);
}

.rate-limit p {
    margin: 0 0 0.75rem 0;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    font-size: 0.9rem;
}

.rate-limit p:last-child {
    margin-bottom: 0;
}

.rate-limit code {
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8rem;
}

.api-example {
    margin-top: 2rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    overflow: hidden;
}

.code-tabs {
    display: flex;
    background: hsl(var(--muted) / 0.3);
    border-bottom: 1px solid hsl(var(--border));
}

.tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.tab:hover {
    color: hsl(var(--foreground));
    background: hsl(var(--muted) / 0.5);
}

.tab.active {
    color: hsl(var(--primary));
    background: hsl(var(--card));
    border-bottom-color: hsl(var(--primary));
}

.code-content {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-content pre {
    margin: 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
}

.code-content code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-family: inherit;
    font-size: inherit;
}

.api-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, hsl(var(--border)), transparent);
    margin: 3rem 0;
}

/* API Documentation Responsive */
@media (max-width: 768px) {
    .api-section {
        padding: 2rem 0;
        min-height: calc(100vh - 3.5rem);
    }

    .api-doc {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .api-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .api-title {
        font-size: 1.25rem;
    }

    .api-endpoint {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .param-name {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .code-tabs {
        flex-wrap: wrap;
    }

    .tab {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .code-content {
        padding: 1rem;
    }

    .code-content pre {
        font-size: 0.8rem;
    }
}

@media (max-width: 640px) {
    .api-container {
        padding: 0 1rem;
    }

    .api-doc {
        padding: 1rem;
    }

    .api-title {
        font-size: 1.125rem;
    }

    .api-description p {
        font-size: 0.9rem;
    }

    .endpoint-url {
        font-size: 0.9rem;
    }

    .param-description {
        font-size: 0.85rem;
    }

    .rate-limit p {
        font-size: 0.85rem;
    }
}

/* Privacy and Terms Pages Styles */
.privacy-hero,
.terms-hero {
    position: relative;
    padding: 8rem 0 6rem;
    background: var(--gradient-subtle);
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.privacy-hero::before,
.terms-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 80% 80% at 50% -20%, rgba(120, 119, 198, 0.1), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.privacy-hero-content,
.terms-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    animation: fade-in-up 0.8s ease-out;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.privacy-hero .section-badge,
.terms-hero .section-badge {
    margin-bottom: 1.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 2rem !important;
    background: var(--gradient-accent) !important;
    color: white !important;
    display: inline-block !important;
}

.privacy-hero .hero-title,
.terms-hero .hero-title {
    font-size: 2.5rem !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    margin-bottom: 1.5rem !important;
    color: hsl(var(--foreground)) !important;
    display: block !important;
    max-width: 100% !important;
}

.privacy-hero .title-line-1,
.privacy-hero .title-line-2,
.terms-hero .title-line-1,
.terms-hero .title-line-2 {
    display: block !important;
    line-height: 1.1 !important;
    margin-bottom: 0 !important;
}

.privacy-hero .gradient-text,
.terms-hero .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.privacy-hero .hero-description,
.terms-hero .hero-description {
    font-size: 1.125rem !important;
    color: hsl(var(--muted-foreground)) !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.privacy-updated,
.terms-updated {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: hsl(var(--muted));
    border-radius: 1rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
}

.privacy-content,
.terms-content {
    padding: 6rem 0;
    background: hsl(var(--background));
}

.privacy-sections,
.terms-sections {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-section,
.terms-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: hsl(var(--card));
    border-radius: 1rem;
    border: 1px solid hsl(var(--border));
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.privacy-section::before,
.terms-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-smooth);
}

.privacy-section:hover::before,
.terms-section:hover::before {
    opacity: 1;
}

.privacy-section:hover,
.terms-section:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.privacy-section h2,
.terms-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid hsl(var(--primary) / 0.2);
}

.privacy-subsection,
.terms-subsection {
    margin-bottom: 1.5rem;
}

.privacy-subsection:last-child,
.terms-subsection:last-child {
    margin-bottom: 0;
}

.privacy-subsection h3,
.terms-subsection h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.75rem;
}

.privacy-section p,
.terms-section p {
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin-bottom: 1rem;
}

.privacy-section ul,
.terms-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.privacy-section li,
.terms-section li {
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.privacy-section strong,
.terms-section strong {
    color: hsl(var(--foreground));
    font-weight: 600;
}

.contact-info {
    background: hsl(var(--muted));
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-top: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

/* Dark mode adjustments */
.dark .privacy-section,
.dark .terms-section {
    background: hsl(var(--card));
    border-color: hsl(var(--border));
}

.dark .contact-info {
    background: hsl(var(--muted));
}

/* Responsive design */
@media (max-width: 768px) {

    .privacy-hero,
    .terms-hero {
        padding: 6rem 0 4rem;
    }

    .privacy-hero .hero-title,
    .terms-hero .hero-title {
        font-size: 2rem;
    }

    .privacy-hero .hero-description,
    .terms-hero .hero-description {
        font-size: 1rem;
    }

    .privacy-content,
    .terms-content {
        padding: 4rem 0;
    }

    .privacy-section,
    .terms-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .privacy-section h2,
    .terms-section h2 {
        font-size: 1.25rem;
    }

    .privacy-subsection h3,
    .terms-subsection h3 {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {

    .privacy-hero,
    .terms-hero {
        padding: 4rem 0 3rem;
    }

    .privacy-hero .hero-title,
    .terms-hero .hero-title {
        font-size: 1.75rem;
    }

    .privacy-section,
    .terms-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
}

.footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 0;
    text-align: center;
    font-size: 14px;
    color: #495057;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #dee2e6;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.footer-content p {
    margin: 0;
    line-height: 1.4;
    font-weight: 400;
}

.footer-link {
    color: #e63946;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 2px 4px;
    border-radius: 3px;
}

.footer-link:hover {
    color: #d62828;
    text-decoration: none;
    background: rgba(230, 57, 70, 0.1);
    transform: translateY(-1px);
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #e63946;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.footer-link:hover::after {
    width: 100%;
}

/* Dark theme footer */
.dark .footer {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: #e2e8f0;
    border-top: 1px solid #4a5568;
}

.dark .footer-link {
    color: #ff6b6b;
}

.dark .footer-link:hover {
    color: #ff5252;
    background: rgba(255, 107, 107, 0.1);
}

/* ========================================
   TRANSCRIPT PAGE STYLES
======================================== */

.transcript-main {
    padding: 0;
    min-height: 100vh;
    background: #f8f9fa;
    margin-top: 80px;
    /* Account for fixed navbar */
}

/* Dark mode for transcript main */
.dark .transcript-main {
    background: hsl(var(--background));
}

.transcript-container {
    display: flex;
    min-height: calc(100vh - 80px);
    background: #f8f9fa;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    clear: both;
    padding: 20px;
    gap: 20px;
}

/* Dark mode for transcript container */
.dark .transcript-container {
    background: hsl(var(--background));
}

/* CSS Grid fallback for modern browsers */
@supports (display: grid) {
    .transcript-container {
        display: grid;
        grid-template-columns: 500px 1fr 1fr;
        gap: 20px;
        padding: 20px;
    }
}

/* Left Panel - Video Information */
.transcript-left-panel {
    background: white;
    border-radius: 12px;
    padding: 24px;
    overflow-y: auto;
    max-height: calc(100vh - 160px);
    min-height: 400px;
    position: relative;
    z-index: 1;
    flex: 0 0 500px;
    width: 500px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Dark mode for left panel */
.dark .transcript-left-panel {
    background: hsl(var(--card));
    color: hsl(var(--foreground));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.video-info-card {
    margin-bottom: 24px;
}

.video-title-container {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
}

.back-arrow-btn {
    background: none;
    border: none;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-arrow-btn:hover {
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
}

.video-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: hsl(var(--foreground));
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-thumbnail {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    aspect-ratio: 16/9;
}

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

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition-smooth);
}

.play-overlay:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-stats {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.video-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tag {
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.video-metadata {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.metadata-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.metadata-label {
    color: hsl(var(--muted-foreground));
    font-weight: 500;
    min-width: 80px;
}

.metadata-value {
    color: hsl(var(--foreground));
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-btn {
    background: none;
    border: none;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
}

/* Credits Section */
.credits-section {
    background: hsl(var(--muted));
    border-radius: 12px;
    padding: 16px;
    margin-top: 24px;
}

/* Dark mode for credits section */
.dark .credits-section {
    background: hsl(var(--muted));
    border: 1px solid hsl(var(--border));
}

.credits-title {
    font-size: 16px;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 12px;
}

.credits-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.credits-section .progress-bar {
    flex: 1;
    height: 8px;
    background: hsl(var(--border));
    border-radius: 4px;
    overflow: hidden;
}

.credits-section .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.credits-text {
    font-size: 14px;
    font-weight: 500;
    color: hsl(var(--foreground));
    min-width: 80px;
}

.upgrade-link {
    color: #ff6b6b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.upgrade-link:hover {
    color: #ff5252;
}

.credits-reset {
    font-size: 12px;
    color: hsl(var(--muted-foreground));
    margin: 0;
}

/* Middle Panel - Transcript Content */
.transcript-middle-panel {
    background: white;
    border-radius: 12px;
    padding: 0;
    overflow-y: auto;
    max-height: calc(100vh - 160px);
    min-height: 400px;
    position: relative;
    z-index: 1;
    flex: 1;
    width: auto;
    min-width: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

/* Dark mode for middle panel */
.dark .transcript-middle-panel {
    background: hsl(var(--card));
    color: hsl(var(--foreground));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.transcript-header {
    padding: 20px 24px 0 24px;
    margin-bottom: 0;
}

.header-bar {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    padding: 16px 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Dark mode for header bar */
.dark .header-bar {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.copy-transcript-btn {
    background: white;
    color: #ff6b6b;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Dark mode for copy transcript button */
.dark .copy-transcript-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #dc2626;
}

.copy-transcript-btn:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.language-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-text {
    color: white;
    font-weight: 500;
    font-size: 14px;
}

.transcript-menu-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.transcript-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.transcript-search {
    padding: 20px 24px;
    display: flex;
    gap: 12px;
    align-items: center;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

/* Dark mode for transcript search */
.dark .transcript-search {
    background: hsl(var(--card));
    border-bottom: 1px solid hsl(var(--border));
}

.search-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-arrows {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.search-arrow-btn {
    background: none;
    border: none;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    padding: 2px;
    border-radius: 2px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.search-arrow-btn:hover {
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(var(--muted-foreground));
    font-size: 14px;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 40px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #374151;
    font-size: 14px;
    transition: all 0.2s ease;
}

/* Dark mode for search input */
.dark .search-input {
    background: hsl(var(--background));
    border-color: hsl(var(--border));
    color: hsl(var(--foreground));
}

.search-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.search-input::placeholder {
    color: #9ca3af;
}

/* Dark mode for search input placeholder */
.dark .search-input::placeholder {
    color: hsl(var(--muted-foreground));
}

.search-language {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Dark mode for search language */
.dark .search-language {
    background: hsl(var(--muted));
    border-color: hsl(var(--border));
}

.search-language:hover {
    background: #e5e7eb;
}

/* Dark mode for search language hover */
.dark .search-language:hover {
    background: hsl(var(--accent));
}

.search-language .lang-text {
    color: #374151;
    font-weight: 500;
    font-size: 14px;
}

/* Dark mode for search language text */
.dark .search-language .lang-text {
    color: hsl(var(--foreground));
}

.search-language i {
    color: #6b7280;
    font-size: 12px;
}

/* Dark mode for search language icon */
.dark .search-language i {
    color: hsl(var(--muted-foreground));
}

.transcript-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background: white;
}

/* Dark mode for transcript content */
.dark .transcript-content {
    background: hsl(var(--card));
    color: hsl(var(--foreground));
}

.transcript-segment {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    padding: 4px 0;
    align-items: flex-start;
    border: none;
    background: none;
}

.transcript-segment:hover {
    background: none;
}

.timestamp {
    font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    color: #9ca3af;
    font-weight: 400;
    min-width: 50px;
    flex-shrink: 0;
    text-align: left;
    line-height: 1.5;
}

.transcript-text {
    font-size: 14px;
    line-height: 1.5;
    color: #111827;
    flex: 1;
    font-weight: 400;
    text-align: justify;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.transcript-controls {
    padding: 20px 24px;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}

.autoscroll-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    padding: 4px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.autoscroll-toggle:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.toggle-input {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 30px;
    background: white;
    border-radius: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid #d1d5db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: #3b82f6;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.toggle-input:checked+.toggle-slider {
    background: #3b82f6;
    border-color: #3b82f6;
}

.toggle-input:checked+.toggle-slider::before {
    transform: translateX(20px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.toggle-input:checked+.toggle-slider::after {
    transform: translateX(20px);
    background: white;
}

.toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Bottom Input Section - Outside Container */
.bottom-input-section {
    background: white;
    padding: 20px;
    margin: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Dark mode for bottom input section */
.dark .bottom-input-section {
    background: hsl(var(--card));
    color: hsl(var(--foreground));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bottom-input-section .input-container {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
    align-items: center;
}

.input-wrapper {
    flex: 1;
    position: relative;
}

.youtube-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff0000;
    font-size: 16px;
}

.url-input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 14px;
}

.btn-extract {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.btn-extract:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

/* Right Panel - Insights & Actions */
.transcript-right-panel {
    background: white;
    border-radius: 12px;
    padding: 24px;
    overflow-y: visible;
    max-height: none;
    min-height: 400px;
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Dark mode for right panel */
.dark .transcript-right-panel {
    background: hsl(var(--card));
    color: hsl(var(--foreground));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.insights-header {
    margin-bottom: 24px;
}

.insights-title {
    font-size: 18px;
    font-weight: 700;
    color: hsl(var(--foreground));
    display: flex;
    align-items: center;
    gap: 8px;
}

.insights-title i {
    color: hsl(var(--primary));
}

/* Chat Section */
.chat-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Dark mode for chat section */
.dark .chat-section {
    background: hsl(var(--card));
    border-color: hsl(var(--border));
    color: hsl(var(--foreground));
}

.chat-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Dark mode for chat title */
.dark .chat-title {
    color: hsl(var(--foreground));
}

.chat-title i {
    color: #667eea;
    font-size: 20px;
}

/* Dark mode for chat title icon */
.dark .chat-title i {
    color: hsl(var(--primary));
}

.chat-beta-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f59e0b;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 8px 12px;
    background: #fef3c7;
    border-radius: 8px;
    border: 1px solid #fde68a;
}

/* Dark mode for chat beta notice */
.dark .chat-beta-notice {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.3);
}

.chat-beta-notice i {
    color: #f59e0b;
}

/* Dark mode for chat beta notice icon */
.dark .chat-beta-notice i {
    color: #fbbf24;
}

.chat-input-container {
    position: relative;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* Dark mode for chat input container */
.dark .chat-input-container {
    background: hsl(var(--background));
    border-color: hsl(var(--border));
}

.chat-input-container:focus-within {
    border-color: #667eea;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
}

.chat-input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #374151;
    font-size: 14px;
    resize: none;
    outline: none;
    line-height: 1.5;
    font-family: inherit;
}

/* Dark mode for chat input */
.dark .chat-input {
    color: hsl(var(--foreground));
}

.chat-input::placeholder {
    color: #9ca3af;
}

/* Dark mode for chat input placeholder */
.dark .chat-input::placeholder {
    color: hsl(var(--muted-foreground));
}

.chat-send-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.chat-send-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.chat-send-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(-50%);
}

/* Chat Messages */
.chat-messages {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 16px 8px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 120px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Dark mode for chat messages scrollbar */
.dark .chat-messages::-webkit-scrollbar-track {
    background: hsl(var(--muted));
}

.dark .chat-messages::-webkit-scrollbar-thumb {
    background: hsl(var(--muted-foreground));
}

.dark .chat-messages::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--foreground));
}

.chat-message {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    animation: slideInMessage 0.4s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.chat-message.ai {
    flex-direction: row;
}

.message-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.message-bubble.user {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 6px;
    margin-left: auto;
}

.message-bubble.ai {
    background: white;
    color: #374151;
    border-bottom-left-radius: 6px;
    border: 1px solid #e5e7eb;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border: 2px solid white;
}

.message-avatar.user {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.message-avatar.ai {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.message-time {
    font-size: 9px;
    color: #9ca3af;
    text-align: right;
}

.chat-message.ai .message-time {
    text-align: left;
}

@keyframes slideInMessage {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Empty state for chat */
.chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #9ca3af;
    text-align: center;
}

.chat-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.chat-empty p {
    font-size: 14px;
    margin: 0;
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .action-buttons {
        grid-template-columns: 1fr;
    }
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    color: hsl(var(--foreground));
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.action-btn:hover {
    background: hsl(var(--muted));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-btn i {
    font-size: 16px;
    color: hsl(var(--muted-foreground));
}

.mindmap-btn {
    background: linear-gradient(135deg, #ff6b6b, #9c27b0);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
    grid-column: 1 / -1;
}

.mindmap-btn:hover {
    background: linear-gradient(135deg, #ff5252, #8e24aa);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.btn-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ff6b6b, #9c27b0);
    opacity: 0;
    transition: var(--transition-smooth);
}

.mindmap-btn:hover .btn-gradient {
    opacity: 1;
}

.btn-text {
    position: relative;
    z-index: 1;
}

/* Advertisement */
.advertisement {
    background: hsl(var(--muted));
    border-radius: 12px;
    padding: 16px;
    border: 1px solid hsl(var(--border));
}

.ad-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ad-image {
    display: flex;
    align-items: center;
    gap: 12px;
}

.code-snippet {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.code-line {
    height: 4px;
    background: hsl(var(--muted-foreground));
    border-radius: 2px;
}

.code-line:nth-child(1) {
    width: 60px;
}

.code-line:nth-child(2) {
    width: 40px;
}

.code-line:nth-child(3) {
    width: 80px;
}

.authentic-text {
    font-size: 12px;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    background: hsl(var(--background));
    padding: 4px 8px;
    border-radius: 4px;
}

.ad-text p {
    font-size: 13px;
    line-height: 1.4;
    color: hsl(var(--muted-foreground));
    margin: 0;
}

.ad-source {
    font-size: 11px !important;
    color: hsl(var(--muted-foreground)) !important;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .transcript-container {
        grid-template-columns: 320px 1fr 1fr;
    }
}

@media (max-width: 1024px) {
    .transcript-container {
        grid-template-columns: 1fr;
        gap: 0;
        display: block;
    }

    .transcript-left-panel,
    .transcript-right-panel {
        max-height: none;
        min-height: auto;
        border: none;
        border-bottom: 1px solid hsl(var(--border));
        width: 100%;
        display: block;
    }

    .transcript-middle-panel {
        max-height: none;
        min-height: auto;
        width: 100%;
        display: block;
    }
}

@media (max-width: 768px) {
    .transcript-main {
        margin-top: 60px;
    }

    .transcript-left-panel,
    .transcript-middle-panel,
    .transcript-right-panel {
        padding: 16px;
        width: 100%;
        display: block;
    }

    .transcript-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .input-container {
        flex-direction: column;
    }

    .action-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .video-thumbnail {
        aspect-ratio: 16/9;
        max-width: 100%;
    }
}

.dual-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.dual-input {
    padding: 12px;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 14px;
}

@media (max-width: 768px) {
    .dual-inputs {
        grid-template-columns: 1fr;
    }
}

/* Authentication Styles */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, hsl(var(--background)), hsl(240 4.8% 97%));
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 10px 12px -3px rgba(0, 0, 0, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 8px;
}

.auth-subtitle {
    color: hsl(var(--muted-foreground));
    font-size: 1rem;
}

.auth-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 12px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    margin-bottom: 8px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.form-input.error,
.form-select.error {
    border-color: hsl(var(--destructive));
}

.error-message {
    display: block;
    color: hsl(var(--destructive));
    font-size: 0.75rem;
    margin-top: 4px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid hsl(var(--border));
    border-radius: 4px;
    position: relative;
    transition: var(--transition-smooth);
}

.checkbox-label input[type="checkbox"]:checked+.checkmark {
    background: hsl(var(--primary));
    border-color: hsl(var(--primary));
}

.checkbox-label input[type="checkbox"]:checked+.checkmark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-link {
    color: hsl(var(--primary));
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-full {
    width: 100%;
    padding: 0 24px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition-smooth);
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-divider {
    text-align: center;
    margin: 16px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
    z-index: 1;
}

.auth-divider span {
    background: #ffffff;
    padding: 0 20px;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.oauth-section {
    margin-bottom: 24px;
}

.oauth-btn {
    width: 100%;
    padding: 0 24px;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
}

.oauth-btn:hover {
    background: hsl(var(--muted));
}

.oauth-btn .google-icon {
    width: 20px;
    height: 20px;
}


.auth-footer {
    text-align: center;
}

.auth-footer p {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.auth-link {
    color: hsl(var(--primary));
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
}

/* Alert Styles */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.875rem;
}

.alert-error {
    background: hsl(var(--destructive) / 0.1);
    border: 1px solid hsl(var(--destructive) / 0.2);
    color: hsl(var(--destructive));
}

.alert-success {
    background: hsl(142 76% 36% / 0.1);
    border: 1px solid hsl(142 76% 36% / 0.2);
    color: hsl(142 76% 36%);
}

.error-list {
    margin: 0;
    padding-left: 16px;
}

/* User Interface Styles */
.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-right: 16px;
}

.user-tokens {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.token-count {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--primary));
}

.token-label {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.user-plan {
    margin-left: 8px;
}

.plan-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-free {
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
}

.plan-starter {
    background: linear-gradient(135deg, #ff6b6b, #9c27b0);
    color: white;
}

.plan-professional {
    background: linear-gradient(135deg, #4caf50, #2196f3);
    color: white;
}

.plan-enterprise {
    background: linear-gradient(135deg, #ff9800, #f44336);
    color: white;
}

.user-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent-blue)));
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-smooth);
}


.user-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    background: transparent;
    border: none;
    color: hsl(var(--foreground));
    padding: 0;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.user-trigger:hover {
    opacity: 0.9;
}

.user-trigger-name {
    font-weight: 600;
    font-size: 0.95rem;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chevron-down {
    width: 14px;
    height: 14px;
    opacity: 0.8;
    transition: transform 0.2s ease;
}

.user-dropdown.open .chevron-down {
    transform: rotate(180deg);
}

.user-avatar:hover {
    transform: scale(1.05);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    display: none;
    margin-top: 8px;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-header {
    padding: 16px;
    border-bottom: 1px solid hsl(var(--border));
}

.user-name {
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 4px;
}

.user-email {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.dropdown-divider {
    height: 1px;
    background: hsl(var(--border));
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: hsl(var(--foreground));
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition-smooth);
}

.dropdown-item:hover {
    background: hsl(var(--muted));
}

.dropdown-item.logout {
    color: hsl(var(--destructive));
}

.dropdown-item.logout:hover {
    background: hsl(var(--destructive) / 0.1);
}

.dropdown-form {
    margin: 0;
}

.dropdown-form button {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}

/* Mobile User Info */
.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: hsl(var(--muted));
    border-radius: 8px;
    margin-bottom: 16px;
}

.mobile-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent-blue)));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
}

.mobile-user-details {
    flex: 1;
}

.mobile-user-name {
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 4px;
}

.mobile-user-plan {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2px;
}

.mobile-user-tokens {
    font-size: 0.75rem;
    color: hsl(var(--primary));
}

.mobile-nav-divider {
    height: 1px;
    background: hsl(var(--border));
    margin: 16px 0;
}

.mobile-logout-form {
    margin: 0;
}

.mobile-logout-form button {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    color: hsl(var(--destructive));
}

.mobile-logout-form button:hover {
    background: hsl(var(--destructive) / 0.1);
}

/* Brand Link */
.brand-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.brand-link:hover {
    color: inherit;
}

/* Responsive Design for Auth */
@media (max-width: 768px) {
    .auth-card {
        padding: 24px;
    }

    .auth-title {
        font-size: 1.75rem;
    }

    .user-info {
        display: none;
    }

    .user-dropdown {
        margin-right: 8px;
    }
}

/* Profile Page Styles */
.profile-header {
    background: transparent;
    color: inherit;
    margin: 24px 0 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.profile-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.profile-header-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.avatar-text {
    color: white;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: inherit;
}

.profile-email {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0 0 16px 0;
}

.profile-badges {
    display: flex;
    gap: 12px;
    align-items: center;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.profile-content {
    padding-bottom: 40px;
}

.profile-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.profile-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px hsl(var(--border) / 0.1);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid hsl(var(--border));
    background: hsl(var(--muted) / 0.3);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: hsl(var(--foreground));
}

.card-title i {
    color: hsl(var(--primary));
}

.card-content {
    padding: 24px;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.subscription-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.subscription-plan,
.subscription-usage,
.subscription-expiry {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-title,
.usage-title,
.expiry-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
    width: fit-content;
}

.usage-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.usage-bar {
    width: 100%;
    height: 8px;
    background: hsl(var(--muted));
    border-radius: 4px;
    overflow: hidden;
}

.usage-progress {
    height: 100%;
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--primary) / 0.8));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.usage-text {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.used {
    color: hsl(var(--primary));
}

.separator {
    color: hsl(var(--muted-foreground));
}

.limit {
    color: hsl(var(--muted-foreground));
}

.unit {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.expiry-date {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.subscription-actions {
    margin-top: 8px;
}

.api-token-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.token-display {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.token-input-group {
    display: flex;
    gap: 8px;
}

.token-input {
    flex: 1;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
}

.token-copy {
    padding: 8px 12px;
    min-width: auto;
}

.token-note {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
}

.token-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.api-docs-link {
    margin-top: 8px;
}

.api-upgrade-notice {
    text-align: center;
    padding: 40px 20px;
}

.notice-icon {
    width: 64px;
    height: 64px;
    background: hsl(var(--muted));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: hsl(var(--muted-foreground));
}

.api-upgrade-notice h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: hsl(var(--foreground));
}

.api-upgrade-notice p {
    color: hsl(var(--muted-foreground));
    margin: 0 0 20px 0;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid hsl(var(--border));
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-info {
    flex: 1;
}

.setting-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: hsl(var(--foreground));
}

.setting-description {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
}

.status-indicator {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-indicator.active {
    background: hsl(34 197 94 / 0.1);
    color: #22c55e;
    border: 1px solid hsl(34 197 94 / 0.2);
}

.status-indicator.inactive {
    background: hsl(0 84% 60% / 0.1);
    color: #ef4444;
    border: 1px solid hsl(0 84% 60% / 0.2);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid hsl(var(--border));
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: hsl(var(--foreground));
}

.modal-close {
    background: none;
    border: none;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
}

.modal-body {
    padding: 24px;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: #22c55e;
}

.notification-error {
    background: #ef4444;
}

.notification-info {
    background: hsl(var(--primary));
}

/* Minute Group Styles - Not used in current design */

.video-duration {
    background: hsl(var(--primary) / 0.1);
    border: 1px solid hsl(var(--primary) / 0.2);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: center;
}

.video-duration h3 {
    margin: 0;
    color: hsl(var(--primary));
    font-size: 1.25rem;
    font-weight: 600;
}

/* Video Player Styles */
.video-player {
    width: 100%;
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.video-player::before {
    content: "";
    display: block;
    padding-top: 56.25%;
    /* 16:9 aspect ratio */
}

.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* Responsive breakpoints for video player */
@media (max-width: 1200px) {
    .video-player {
        margin-bottom: 20px;
    }
}

@media (max-width: 992px) {
    .video-player {
        margin-bottom: 18px;
        border-radius: 10px;
    }

    .video-player iframe {
        border-radius: 10px;
    }
}

@media (max-width: 768px) {
    .video-player {
        margin-bottom: 16px;
        border-radius: 8px;
    }

    .video-player iframe {
        border-radius: 8px;
    }
}

@media (max-width: 576px) {
    .video-player {
        margin-bottom: 12px;
        border-radius: 6px;
    }

    .video-player iframe {
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .video-player {
        margin-bottom: 10px;
        border-radius: 4px;
    }

    .video-player iframe {
        border-radius: 4px;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .video-player::before {
        padding-top: 75%;
        /* Adjust for landscape */
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .video-player {
        margin-bottom: 8px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .video-player iframe {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Responsive Design for Transcript Layout */
@media (max-width: 1200px) {
    .transcript-container {
        gap: 16px;
    }

    .transcript-left-panel {
        min-width: 300px;
    }
}

@media (max-width: 992px) {
    .transcript-container {
        flex-direction: column;
        gap: 20px;
    }

    .transcript-left-panel,
    .transcript-middle-panel,
    .transcript-right-panel {
        width: 100%;
        min-width: auto;
    }

    .video-player {
        max-width: 600px;
        margin: 0 auto 20px auto;
    }
}

@media (max-width: 768px) {
    .transcript-container {
        padding: 16px;
        gap: 16px;
    }

    .video-player {
        max-width: 100%;
        margin: 0 0 16px 0;
    }

    .video-info-card {
        padding: 16px;
    }

    .video-title {
        font-size: 1.1rem;
        line-height: 1.4;
    }
}

@media (max-width: 576px) {
    .transcript-container {
        padding: 12px;
        gap: 12px;
    }

    .video-player {
        margin: 0 0 12px 0;
    }

    .video-info-card {
        padding: 12px;
    }

    .video-title {
        font-size: 1rem;
        line-height: 1.3;
    }

    .video-metadata {
        flex-direction: column;
        gap: 8px;
    }

    .metadata-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .transcript-container {
        padding: 8px;
        gap: 8px;
    }

    .video-player {
        margin: 0 0 8px 0;
    }

    .video-info-card {
        padding: 8px;
    }

    .video-title {
        font-size: 0.9rem;
        line-height: 1.2;
    }
}

/* Responsive Design for Profile */
@media (max-width: 768px) {
    .profile-header-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .profile-avatar {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card-content {
        padding: 16px;
    }

    .form-actions {
        flex-direction: column;
    }

    .token-input-group {
        flex-direction: column;
    }

    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .modal-content {
        margin: 0;
        border-radius: 0;
        height: 100vh;
        max-height: 100vh;
    }
}


/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    /* smaller width */
    height: 22px;
    /* smaller height */
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    /* smaller knob */
    width: 16px;
    left: 3px;
    /* adjusted spacing */
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:focus+.slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
    transform: translateX(18px);
    /* smaller distance */
}

/* Rounded sliders */
.slider.round {
    border-radius: 22px;
    /* smaller border radius */
}

.slider.round:before {
    border-radius: 50%;
}

/* Dynamic Transcript Styles */
.transcript-segment {
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 12px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.transcript-segment:hover {
    background: var(--hover-bg);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.transcript-segment.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.transcript-segment.playing {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(147, 51, 234, 0.15));
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    }
}

.segment-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 4px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.segment-header:has(.duration) {
    justify-content: space-between;
}

.segment-header .timestamp {
    font-weight: 600;
    color: var(--primary-color);
}

.segment-header .duration {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.transcript-text {
    line-height: 1.6;
    color: var(--text-primary);
    font-size: 0.95rem;
    text-align: justify;
}

.transcript-segment.active .transcript-text {
    color: var(--text-primary);
    font-weight: 500;
}

.transcript-segment.playing .transcript-text {
    color: var(--text-primary);
    font-weight: 600;
}

/* Autoscroll indicator */
.transcript-segment.active::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--primary-color);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.transcript-segment.active::before {
    opacity: 1;
}

.transcript-segment.playing::before {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    height: 80%;
}

/* Hover overlay styles */
.segment-hover-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.125);
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 12px 16px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.transcript-segment:hover .segment-hover-overlay {
    opacity: 1;
    visibility: visible;
}

.hover-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    padding: 0;
}

.hover-duration {
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    background: rgba(0, 0, 0, 0.75);
    padding: 4px 8px;
    border-radius: 6px;
    margin-right: 4px;
}

.hover-action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: auto;
    background: rgba(0, 0, 0, 0.75);
}

.hover-action-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    color: white;
}

.hover-action-btn i {
    font-size: 0.8rem;
    color: white;
}

.hover-action-btn span {
    white-space: nowrap;
    font-size: 0.8rem;
    color: white;
}

/* Add Note Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

/* Dark mode for modal container */
.dark .modal-container {
    background: hsl(var(--card));
    color: hsl(var(--foreground));
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

/* Dark mode for modal header */
.dark .modal-header {
    border-bottom-color: hsl(var(--border));
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

/* Dark mode for modal title */
.dark .modal-title {
    color: hsl(var(--foreground));
}

.modal-close {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

/* Dark mode for modal close button */
.dark .modal-close {
    color: hsl(var(--muted-foreground));
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Dark mode for modal close button hover */
.dark .modal-close:hover {
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
}

.modal-body {
    padding: 20px 24px;
}

.modal-description {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

/* Dark mode for modal description */
.dark .modal-description {
    color: hsl(var(--muted-foreground));
}

.modal-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease;
}

/* Dark mode for modal textarea */
.dark .modal-textarea {
    background: hsl(var(--background));
    border-color: hsl(var(--border));
    color: hsl(var(--foreground));
}

.modal-textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal-textarea::placeholder {
    color: #9ca3af;
}

/* Dark mode for modal textarea placeholder */
.dark .modal-textarea::placeholder {
    color: hsl(var(--muted-foreground));
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.btn-secondary {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

/* Dark mode for secondary button */
.dark .btn-secondary {
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    border-color: hsl(var(--border));
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Dark mode for secondary button hover */
.dark .btn-secondary:hover {
    background: hsl(var(--muted));
    border-color: hsl(var(--muted-foreground));
}

.btn-primary {
    background: #ef4444;
    color: white;
    font-weight: 700;
}

.btn-primary:hover {
    background: #dc2626;
}

.btn i {
    font-size: 0.75rem;
}

/* Note display styles */
.note-display {
    margin-top: 8px;
    padding: 8px 12px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    animation: slideDown 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

/* Dark mode for note display */
.dark .note-display {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.3);
}

.note-icon {
    color: #d97706;
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* Dark mode for note icon */
.dark .note-icon {
    color: #fbbf24;
}

.note-text {
    color: #92400e;
    font-size: 0.875rem;
    font-weight: 500;
    flex: 1;
    line-height: 1.4;
}

/* Dark mode for note text */
.dark .note-text {
    color: #fbbf24;
}

/* AI Output Section */
.ai-output {
    margin-top: 16px;
    display: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}

/* Dark mode for AI output */
.dark .ai-output {
    background: hsl(var(--card));
    border-color: hsl(var(--border));
    color: hsl(var(--foreground));
}

/* AI Output Header */
.ai-output-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    justify-content: space-between;
}

.ai-output-title-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-robot-icon {
    color: #667eea;
}

.dark .ai-robot-icon {
    color: hsl(var(--primary));
}

.ai-output-title {
    font-size: 15px;
    color: hsl(var(--foreground));
}

.ai-loading {
    display: none;
    font-size: 12px;
    opacity: 0.7;
    color: hsl(var(--muted-foreground));
}

.ai-copied {
    display: none;
    font-size: 12px;
    color: #059669;
}

.dark .ai-copied {
    color: #10b981;
}

.ai-output-actions {
    display: flex;
    gap: 6px;
}

.ai-action-btn {
    display: none;
    width: 30px;
    height: 30px;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 13px;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.dark .ai-action-btn {
    background: hsl(var(--card));
    border-color: hsl(var(--border));
}

.ai-action-btn:hover {
    background: hsl(var(--muted));
}

.ai-delete-btn {
    color: #b91c1c;
}

.dark .ai-delete-btn {
    color: #ef4444;
}

.ai-output-body {
    font-size: 14px;
    line-height: 1.7;
    color: hsl(var(--foreground));
    max-height: 55vh;
    overflow: auto;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth scrolling for transcript content */
.transcript-content {
    scroll-behavior: smooth;
}

/* Mobile responsiveness for transcript segments */
@media (max-width: 768px) {
    .transcript-segment {
        padding: 10px 12px;
        margin-bottom: 6px;
    }

    .segment-header {
        font-size: 0.8rem;
        margin-bottom: 3px;
    }

    .transcript-text {
        font-size: 0.9rem;
    }

    .segment-header .duration {
        font-size: 0.7rem;
        padding: 1px 6px;
    }
}

/* Dark mode adjustments */
.dark .transcript-segment {
    background: hsl(var(--card));
    border-color: hsl(var(--border));
    color: hsl(var(--foreground));
}

.dark .transcript-segment:hover {
    background: hsl(var(--accent));
}

.dark .transcript-segment.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(147, 51, 234, 0.2));
}

.dark .transcript-segment.playing {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(147, 51, 234, 0.25));
}

/* Enhanced Channel Page Styles */
.channel-search-form {
    margin-bottom: 2rem;
}

.channel-form .form-group {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 0;
}

.channel-input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid #22c55e;
    border-radius: 0.5rem;
    background: white;
    font-size: 1rem;
    transition: all 0.2s ease;
    outline: none;
}

.channel-input:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.channel-input::placeholder {
    color: #6b7280;
}

.channel-btn {
    padding: 0.875rem 1.5rem;
    background: #ec4899;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.channel-btn:hover:not(:disabled) {
    background: #db2777;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.channel-btn:active:not(:disabled) {
    transform: translateY(0);
}

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

/* Tabs Container */
.tabs-container {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
}

.tab-button {
    flex: 1;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.tab-button.active {
    color: #1f2937;
    background: #f9fafb;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #ec4899;
}

.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

/* Channel Info Card */
.channel-info-card {
    background: white;
}

.channel-header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.channel-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

.channel-meta-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    text-align: left;
}

.channel-stats {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.4;
}

.channel-id-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.channel-id-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.channel-id-label svg {
    width: 16px;
    height: 16px;
    color: #6b7280;
}

.channel-id-code {
    display: block;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.75rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    color: #374151;
    margin: 0.5rem 0;
    word-break: break-all;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #ec4899;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #db2777;
    transform: translateY(-1px);
}

.copy-btn svg {
    width: 16px;
    height: 16px;
}

.channel-description-section {
    margin-top: 1.5rem;
}

.channel-description-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.5rem 0;
}

.channel-description-section p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    max-height: 120px;
    overflow-y: auto;
}

/* Playlist Tab Styles */
.playlist-info {
    background: white;
}

.playlist-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.playlist-info .text-sm {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.playlist-info .flex {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.playlist-info code {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.75rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    color: #374151;
    flex: 1;
    word-break: break-all;
    overflow-x: auto;
}

.playlist-info .bg-muted {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.playlist-info .bg-muted h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.5rem 0;
}

.playlist-info .bg-muted ul {
    margin: 0;
    padding-left: 1rem;
}

.playlist-info .bg-muted li {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.25rem;
    text-align: left;
}

.playlist-info .bg-muted a {
    color: #ec4899;
    text-decoration: none;
}

.playlist-info .bg-muted a:hover {
    text-decoration: underline;
}

/* Button styles for playlist actions */
.playlist-info button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #ec4899;
    background: white;
    color: #ec4899;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.playlist-info button:hover {
    background: #ec4899;
    color: white;
}

.playlist-info button svg {
    width: 16px;
    height: 16px;
}

/* Loading and Error States */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #ec4899;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-state p {
    color: #dc2626;
    font-size: 1rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .channel-form .form-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .channel-btn {
        width: 100%;
        padding: 0.75rem 1rem;
    }

    .channel-header-info {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .channel-id-section {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .copy-btn {
        width: 100%;
        justify-content: center;
    }

    .tabs-header {
        flex-direction: column;
    }

    .tab-button {
        border-bottom: 1px solid #e5e7eb;
    }

    .tab-button:last-child {
        border-bottom: none;
    }

    .tab-content {
        padding: 1rem;
    }
}

/* Footer Note */
.channel-footer-note {
    margin-top: 2rem;
    text-align: center;
}

.channel-footer-note p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Credit Display Section */
.credit-section {
    padding: 2rem 0;
    background: linear-gradient(135deg, hsl(var(--background)) 0%, hsl(var(--muted)) 100%);
}

.credit-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.credit-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.credit-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

.credit-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary)) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.credit-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin: 0 0 0.25rem 0;
}

.credit-info p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
}

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

.credit-stat {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
}

.credit-progress {
    margin-bottom: 1rem;
}

/* General progress bar styles - only apply when not in credits section */
.progress-bar:not(.credits-section .progress-bar) {
    width: 100%;
    height: 8px;
    background: hsl(var(--muted));
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill:not(.credits-section .progress-fill) {
    height: 100%;
    background: linear-gradient(90deg, hsl(var(--primary)) 0%, hsl(var(--primary)) 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    text-align: center;
}

.credit-warning {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: hsl(var(--destructive) / 0.1);
    border: 1px solid hsl(var(--destructive) / 0.2);
    border-radius: 8px;
    color: hsl(var(--destructive));
    font-size: 0.875rem;
    font-weight: 500;
}

.credit-warning svg {
    flex-shrink: 0;
}

/* Dark mode styles */
.dark .credit-section {
    background: linear-gradient(135deg, hsl(var(--background)) 0%, hsl(var(--muted) / 0.3) 100%);
}

.dark .credit-card {
    background: hsl(var(--card));
    border-color: hsl(var(--border));
}

.dark .credit-warning {
    background: hsl(var(--destructive) / 0.15);
    border-color: hsl(var(--destructive) / 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
    .credit-section {
        padding: 1.5rem 0;
    }

    .credit-card {
        padding: 1rem;
    }

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

    .stat-value {
        font-size: 1.5rem;
    }

    .credit-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .credit-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .credit-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .credit-stat {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem;
        background: hsl(var(--muted) / 0.5);
        border-radius: 8px;
    }

    .stat-value {
        font-size: 1.25rem;
        margin-bottom: 0;
    }
}

