* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --primary: #0364ff;
    --primary-dark: #0251d9;
    --secondary: #10b981;
    --dark: #0f172a;
    --gray: #64748b;
    --light-gray: #f1f5f9;
    --white: #ffffff;
    --error: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--light-gray);
    color: var(--dark);
}
/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}
/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--white);
    border-right: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
}
.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo img {
    height: 45px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    margin-right: 0.75rem;
}
.nav-menu {
    flex: 1;
    padding: 1rem 0;
}
.nav-item {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start;
    gap: 12px !important; /* Sabit gap */
    padding: 12px 24px !important;
    color: var(--gray);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 8px;
    margin: 0 0.5rem;
    font-size: calc(1rem - 1px);
    line-height: 1.4;
    min-height: 48px !important;
    box-sizing: border-box !important;
    white-space: nowrap;
    flex-direction: row;
}
.nav-item:hover {
    color: var(--primary);
    background: rgba(3, 100, 255, 0.08);
    transform: translateX(4px);
}
.nav-item.active {
    color: var(--primary);
    background: rgba(3, 100, 255, 0.12);
    font-weight: 600;
}
.nav-item.active::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
}
/* Tüm nav iconları için tek bir stil */
.nav-icon,
.nav-icon-img {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    flex-shrink: 0 !important;
    object-fit: contain !important;
    transition: all 0.3s ease;
    vertical-align: middle;
    display: inline-block;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* SVG iconlar için ek özellikler */
.nav-icon {
    stroke-width: 2;
}

/* SVG img dosyaları için */
.nav-icon-img[src$=".svg"] {
    fill: currentColor;
}

/* Hover efekti - tüm iconlar için */
.nav-item:hover .nav-icon,
.nav-item:hover .nav-icon-img {
    transform: scale(1.1);
}

/* SVG iconlar için hover'da stroke artışı */
.nav-item:hover .nav-icon {
    stroke-width: 2.5;
}

/* Active durumu - tüm iconlar için */
.nav-item.active .nav-icon {
    stroke-width: 2.5;
}

.nav-item.active .nav-icon-img {
    filter: opacity(1);
}

/* GenieX (AI Assistant) özel stil */
#aiAssistantNav {
    background: #000000 !important;
    color: #ffffff !important;
}

/* Team Management güvenlik stilleri */
.hide-team-nav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.show-team-nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Hover durumunda da koyu kalması için */
#aiAssistantNav:hover {
    background: #1a1a1a !important; /* Hafif açık siyah */
    color: #ffffff !important;
    transform: translateX(4px); /* Diğerleriyle aynı hover efekti */
}

/* Active durumu için */
#aiAssistantNav.active {
    background: #000000 !important;
    color: #ffffff !important;
}

/* AI Chat Styles */
.chat-messages {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f7fafc;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.user-message {
    margin-left: auto;
    max-width: 80%;
}

.user-message .message-content {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
    margin-left: auto;
}

.ai-message .message-content {
    background: white;
    color: var(--dark);
}

.quick-question-btn:hover {
    background: var(--primary) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 100, 255, 0.3);
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.typing-dots {
    display: flex;
    gap: 0.25rem;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: typingAnimation 1.4s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingAnimation {
    0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
    30% { opacity: 1; transform: scale(1); }
}

/* Mobile responsive for chat */
@media (max-width: 768px) {
    .ai-chat-container {
        grid-template-columns: 1fr !important;
    }
    
    .chat-interface {
        height: 500px !important;
    }
    
    .quick-questions {
        order: -1;
    }
}


/* Responsive logo adjustments */
@media (max-width: 768px) {
    .logo img {
        height: 38px;
        max-width: 150px;
        margin-right: 0.5rem;
    }
}
@media (max-width: 480px) {
    .logo img {
        height: 32px;
        max-width: 120px;
        margin-right: 0.25rem;
    }
}
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--light-gray);
}
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-gray);
}
.quick-actions .nav-item {
    margin: 0 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: calc(1rem - 1px);
    border-radius: 8px;
    gap: 0.75rem;
    min-height: 48px;
    line-height: 1.4;
    flex-direction: row;
}
.user-profile-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.user-profile:hover {
    background: rgba(3, 100, 255, 0.1);
}
.upgrade-profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.upgrade-profile-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}
.user-info {
    flex: 1;
}
.user-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--dark);
}
.user-plan {
    font-size: 0.75rem;
    color: var(--gray);
}
/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
/* Header */
.header {
    background: var(--white);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}
.welcome-message {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--gray);
    margin-bottom: 0;
}
.header-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.notification-btn {
    position: relative;
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.notification-btn:hover {
    background: var(--light-gray);
}
.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--error);
    border-radius: 50%;
}
.extension-btn {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.extension-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(3, 100, 255, 0.3);
}
/* Content Area */
.content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}
/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--light-gray);
    transition: all 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.stat-label {
    color: var(--gray);
    font-size: 0.875rem;
    font-weight: 500;
}
.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.stat-icon.primary {
    background: rgba(3, 100, 255, 0.1);
    color: var(--primary);
}
.stat-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}
.stat-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}
.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}
.stat-change {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.stat-change.positive {
    color: var(--success);
}
.stat-change.negative {
    color: var(--error);
}
/* API Key Section */
.api-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--light-gray);
    margin-bottom: 2rem;
    max-width: 100%;
    overflow: hidden;
}
/* Analytics Chart specific styling */
#etsyAnalyticsChart {
    position: relative;
    max-width: calc(100vw - 320px); /* Account for sidebar width */
    margin-right: 1rem;
}
#analyticsChartContainer {
    max-width: 100%;
    overflow: hidden;
}
#etsyAnalyticsChartCanvas {
    max-width: 100% !important;
    height: auto !important;
}
/* Mobile Responsive for Analytics Chart */
@media (max-width: 768px) {
    #etsyAnalyticsChart {
        max-width: 100%;
        margin-right: 0;
        padding: 1rem;
    }
    .dashboard-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        position: relative;
    }
    .main-content {
        width: 100%;
    }
    #analyticsChartContainer {
        padding: 1rem;
    }
}
.api-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.api-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
}
.api-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}
.api-status::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--success);
}
.api-key-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}
.api-key-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.875rem;
    background: var(--light-gray);
    color: var(--dark);
}
.api-key-input.hidden {
    color: transparent;
    text-shadow: 0 0 8px rgba(0,0,0,0.5);
}
.copy-btn,
.toggle-btn {
    padding: 0.75rem 1rem;
    border: 2px solid var(--light-gray);
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    color: var(--gray);
    transition: all 0.3s ease;
}
.copy-btn:hover,
.toggle-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.api-info {
    padding: 1rem;
    background: rgba(3, 100, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}
/* Template Selection Styles */
.template-option:hover {
    border-color: var(--primary) !important;
    background: rgba(3, 100, 255, 0.05) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(3, 100, 255, 0.15);
}
.template-option input[type="radio"]:checked + div {
    color: var(--primary);
}
.template-option:has(input[type="radio"]:checked) {
    border-color: var(--primary) !important;
    background: rgba(3, 100, 255, 0.1) !important;
}
/* Template Card Styles */
.template-card {
    background: white;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.template-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(3, 100, 255, 0.15);
}
.api-info-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}
.api-info-text {
    color: var(--gray);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Upgrade Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.modal-overlay.show {
    display: flex;
}
.upgrade-modal {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}
.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}
.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}
.modal-subtitle {
    color: var(--gray);
}
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.plan-card {
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.plan-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}
.plan-card.featured {
    border-color: var(--primary);
    background: rgba(3, 100, 255, 0.05);
}
.plan-name {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}
.plan-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}
.plan-features {
    list-style: none;
    font-size: 0.875rem;
    color: var(--gray);
}
.plan-features li {
    margin-bottom: 0.25rem;
}
.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}
.modal-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
}
.btn-primary:hover {
    background: var(--primary-dark);
}
.btn-secondary {
    background: transparent;
    color: var(--gray);
    border: 2px solid var(--light-gray);
}
.btn-secondary:hover {
    border-color: var(--gray);
}
/* Listing Card Styles */
.listing-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}
.listing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.listing-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.listing-meta {
    font-size: 0.875rem;
    color: var(--gray);
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}
.listing-description {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.listing-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.tag {
    background: rgba(3, 100, 255, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}
.listing-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
}
.expand-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.expand-btn:hover {
    text-decoration: underline;
}
.listing-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--gray);
}
.expanded-content {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
}
.expanded-content.show {
    display: block;
}
.full-description {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}
.materials-section {
    margin-bottom: 1rem;
}
.materials-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}
.materials-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.material {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
}
/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -260px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
    }
    .sidebar.open {
        left: 0;
    }
    .main-content {
        margin-left: 0;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .api-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .professional-badge {
        font-size: 0.7rem !important;
        padding: 0.4rem 0.8rem !important;
        white-space: normal !important;
        text-align: center;
        line-height: 1.2;
    }
    .plans-grid {
        grid-template-columns: 1fr;
    }
    .listing-header {
        flex-direction: column;
        gap: 1rem;
    }
    .listing-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    .listing-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    /* AI Assistant API Responsive Design */
    .ai-assistant-cards {
        display: flex;
        gap: 1.5rem;
        margin: 2rem 0;
        text-align: left;
        justify-content: space-between;
        align-items: stretch;
        flex-wrap: wrap;
    }
    .ai-assistant-card {
        background: white;
        padding: 1.5rem;
        border-radius: 12px;
        border: 1px solid var(--light-gray);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        flex: 1;
        width: calc(33.333% - 1rem);
        min-width: 200px;
        transition: all 0.3s ease;
    }
    .ai-assistant-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    }
    /* Mobile responsive for AI Assistant cards */
    @media (max-width: 768px) {
        .ai-assistant-cards {
            flex-direction: column;
            gap: 1rem;
        }
        .ai-assistant-card {
            width: 100%;
            min-width: auto;
        }
    }
    @media (max-width: 480px) {
        .ai-assistant-card {
            padding: 1rem;
        }
        .welcome-message {
            font-size: calc(1.2rem - 2px);
        }
        /* Profile page mobile */
        .settings-section .profile-form-grid {
            grid-template-columns: 1fr !important;
        }
        .settings-section .profile-upload-container {
            flex-direction: column !important;
            text-align: center;
        }
        .settings-section .profile-upload-area {
            margin-top: 1rem;
        }
        /* Getting Started videos mobile */
        #gettingStarted .video-grid {
            grid-template-columns: 1fr !important;
            gap: 1rem;
        }
        #gettingStarted .video-card {
            margin: 0 auto;
            max-width: 400px;
        }
        /* Sale With GenieX videos mobile */
        #saleWithGenieXSection .video-grid {
            grid-template-columns: 1fr !important;
            gap: 1rem !important;
        }
        #saleWithGenieXSection .video-card {
            margin: 0 auto;
            max-width: 400px;
        }

    }
}

/* YouTube Video Popup Modal */
.video-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}
.video-popup-modal {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-popup-iframe {
    width: 100%;
    height: 506px;
    border: none;
}

.video-popup-close {
    position: absolute;
    top: -40px;
    right: -40px;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.video-popup-close:hover {
    background: #fff;
    transform: scale(1.1);
}

/* Video Thumbnail Styles */
.video-thumbnail {
    position: relative;
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-thumbnail:hover {
    transform: scale(1.02);
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.video-play-button:hover {
    background: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-button svg {
    width: 32px;
    height: 32px;
    color: #0364ff;
    margin-left: 4px;
}

.video-duration {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Video Card Hover Effects */
.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}

/* Watch Button Hover Effects */
.watch-btn:hover {
    background: var(--primary-dark) !important;
}

/* Upgrade Modal Styles */
.upgrade-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.upgrade-modal-overlay.show {
    display: flex;
}

.upgrade-modal {
    background: white;
    border-radius: 20px;
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.4s ease-out;
    position: relative;
}

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

.upgrade-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px 20px 0 0;
}

.upgrade-modal-header h2 {
    margin: 0;
    color: #1f2937;
    font-size: 1.8rem;
    font-weight: 700;
}

.upgrade-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #6b7280;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.upgrade-modal-close:hover {
    background: #f3f4f6;
    color: #1f2937;
    transform: scale(1.1);
}

.upgrade-modal-content {
    padding: 2rem;
}
.upgrade-plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    align-items: stretch;
}

.upgrade-plan-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

.upgrade-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(3, 100, 255, 0.15);
    border-color: rgba(3, 100, 255, 0.3);
}

.upgrade-plan-card.current {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
}

.upgrade-plan-card.recommended {
    border-color: #0364ff;
    background: linear-gradient(135deg, rgba(3, 100, 255, 0.05) 0%, rgba(3, 100, 255, 0.02) 100%);
    position: relative;
}

.upgrade-plan-card.recommended::before {
    content: "⭐ Recommended";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #0364ff;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.upgrade-plan-card.current::before {
    content: "✓ Current Plan";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.upgrade-plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.upgrade-plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0364ff;
    margin-bottom: 0.5rem;
}

.upgrade-plan-price span {
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
}

.upgrade-plan-description {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.upgrade-plan-features {
    list-style: none;
    margin-bottom: auto;
    text-align: left;
    padding: 0;
    flex-grow: 1;
}

.upgrade-plan-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #374151;
    font-size: 0.9rem;
}

.upgrade-plan-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.upgrade-plan-btn.primary {
    background: linear-gradient(135deg, #0364ff 0%, #0251d9 100%);
    color: white;
}

.upgrade-plan-btn.primary:hover {
    background: linear-gradient(135deg, #0251d9 0%, #0242c7 100%);
    transform: translateY(-2px);
}

.upgrade-plan-btn.secondary {
    background: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}

.upgrade-plan-btn.success {
    background: #10b981;
    color: white;
    cursor: default;
}

/* Modal Animation */
@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Plans Grid */
@media (max-width: 1200px) and (min-width: 769px) {
    .upgrade-plans-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
}

@media (max-width: 768px) {
    .upgrade-modal {
        width: 95%;
        margin: 1rem;
    }
    
    .upgrade-plans-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .upgrade-plan-card {
        min-height: auto;
    }
}
    
.upgrade-modal-header {
    padding: 1.5rem;
}

.upgrade-modal-content {
    padding: 1.5rem;
}

/* =================== ANIMATIONS =================== */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* =================== LOADING BUTTON FIX =================== */
/* Button Loading State - Kayma Problemi Çözümü */
button, input[type="submit"], .btn, .upgrade-plan-btn {
    /* Sabit height ile kayma önleme */
    min-height: 48px !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

/* Loading Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading, [class*="loading"] {
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    border: 2px solid transparent !important;
    border-top: 2px solid currentColor !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
    margin-left: 0.5rem !important;
    vertical-align: middle !important;
}

/* Disabled state için consistent styling */
button:disabled, input[type="submit"]:disabled, .btn:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Specific button fix - Submit buttons */
button[type="submit"], input[type="submit"] {
    min-height: 48px !important;
    line-height: 1.4 !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

/* Upgrade plan buttons özel fix */
.upgrade-plan-btn {
    min-height: 52px !important;
    padding: 1rem !important;
}

/* Chart period buttons fix */
.chart-period-btn {
    min-height: 40px !important;
    padding: 0.5rem 1rem !important;
}

/* Small action buttons fix */
button[style*="padding: 0.5rem"] {
    min-height: 40px !important;
}

/* Large action buttons fix */
button[style*="padding: 0.75rem"] {
    min-height: 48px !important;
}

/* =================== PROFESSIONAL MOBILE EXPERIENCE WITH HAMBURGER MENU =================== */

/* Hamburger Menu Button */
.hamburger-menu {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	border-radius: 8px;
	transition: all 0.3s ease;
	position: relative;
	z-index: 1001;
}

.hamburger-menu:hover {
	background: rgba(3, 100, 255, 0.1);
}

.hamburger-icon {
	width: 24px;
	height: 18px;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.hamburger-line {
	width: 100%;
	height: 2px;
	background: var(--dark);
	border-radius: 2px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	transform-origin: center;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
	opacity: 0;
	transform: scaleX(0);
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(4px);
	z-index: 999;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
	opacity: 1;
}

/* Mobile Navigation Panel */
.mobile-nav-panel {
	position: fixed;
	top: 0;
	right: -100%;
	width: 280px;
	height: 100vh;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(25px);
	border-left: 1px solid rgba(228, 228, 231, 0.4);
	box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.mobile-nav-panel.active {
	right: 0;
}

.mobile-nav-header {
	padding: 1.5rem;
	border-bottom: 1px solid rgba(228, 228, 231, 0.4);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.mobile-nav-logo {
	font-size: 1.25rem;
	font-weight: 700;
	background: linear-gradient(135deg, #0364ff 0%, #8b5cf6 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.mobile-nav-close {
	background: none;
	border: none;
	font-size: 1.5rem;
	color: #64748b;
	cursor: pointer;
	padding: 0.5rem;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.mobile-nav-close:hover {
	background: rgba(239, 68, 68, 0.1);
	color: #ef4444;
}

.mobile-nav-menu {
	padding: 1rem 0;
}

.mobile-nav-footer {
	padding: 1rem 1.5rem;
	border-top: 1px solid rgba(228, 228, 231, 0.4);
	background: rgba(248, 250, 252, 0.5);
}

.mobile-extension-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	width: 100%;
	padding: 1rem;
	background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
	color: white;
	border: none;
	border-radius: 12px;
	font-weight: 700;
	font-size: 0.875rem;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 16px rgba(3, 100, 255, 0.25);
}

.mobile-extension-btn:hover {
	background: linear-gradient(135deg, #0251d9 0%, #7c3aed 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(3, 100, 255, 0.35);
	color: white;
}

.mobile-extension-btn:active {
	transform: translateY(0);
}

.mobile-nav-item {
	display: flex !important;
	align-items: center !important;
	gap: 1rem !important;
	padding: 1rem 1.5rem !important;
	color: #64748b !important;
	text-decoration: none !important;
	font-weight: 600 !important;
	font-size: 1rem !important;
	transition: all 0.3s ease !important;
	border-left: 3px solid transparent !important;
	margin: 0 !important;
	min-height: auto !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.mobile-nav-item:hover {
	background: rgba(3, 100, 255, 0.08) !important;
	color: var(--primary) !important;
	border-left-color: var(--primary) !important;
	transform: translateX(4px) !important;
}

.mobile-nav-item.active {
	background: rgba(3, 100, 255, 0.12) !important;
	color: var(--primary) !important;
	border-left-color: var(--primary) !important;
	transform: translateX(6px) !important;
}

.mobile-nav-item .nav-icon,
.mobile-nav-item .nav-icon-img {
	width: 24px !important;
	height: 24px !important;
	transition: all 0.3s ease !important;
}

.mobile-nav-item:hover .nav-icon,
.mobile-nav-item:hover .nav-icon-img,
.mobile-nav-item.active .nav-icon,
.mobile-nav-item.active .nav-icon-img {
	transform: scale(1.1) !important;
}

/* Special AI Assistant styling in mobile menu */
.mobile-nav-item#aiAssistantNav {
	background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%) !important;
	color: #ffffff !important;
	border-radius: 12px !important;
	margin: 0.5rem 1rem !important;
	border-left: 3px solid transparent !important;
}

.mobile-nav-item#aiAssistantNav:hover,
.mobile-nav-item#aiAssistantNav.active {
	background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%) !important;
	color: #ffffff !important;
	transform: translateX(2px) !important;
}

/* Mobile First: Core Layout Adjustments */
@media (max-width: 768px) {
	/* Reset mobile layout */
	.dashboard-container {
		flex-direction: column;
		min-height: 100vh;
		background: #f8fafc;
	}

	/* Modern Mobile Header with Hamburger */
	.header {
		position: sticky;
		top: 0;
		z-index: 998;
		background: rgba(255, 255, 255, 0.95);
		backdrop-filter: blur(20px);
		border-bottom: 1px solid rgba(228, 228, 231, 0.6);
		padding: 1rem 1.25rem;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	/* Hide extension button on mobile */
	.extension-btn {
		display: none !important;
	}

	/* Hide notification button on mobile for cleaner look */
	.notification-btn {
		display: none !important;
	}

	/* Show hamburger menu on mobile */
	.hamburger-menu {
		display: block;
	}

	/* Hide desktop sidebar on mobile */
	.sidebar {
		display: none !important;
	}

	/* Show mobile navigation components */
	.mobile-nav-overlay,
	.mobile-nav-panel {
		display: block;
	}

	/* Adjust header actions for mobile */
	.header-actions {
		gap: 0;
		align-items: center;
	}

	.page-title {
		font-size: 1.375rem;
		font-weight: 700;
		background: linear-gradient(135deg, #0364ff 0%, #0251d9 100%);
		-webkit-background-clip: text;
		-webkit-text-fill-color: transparent;
		background-clip: text;
	}

	.welcome-message {
		font-size: 1rem;
		color: #64748b;
		margin-top: 0.25rem;
	}

	.header-actions {
		gap: 0.75rem;
	}

	/* Optimized Content Area */
	.content {
		padding: 1.25rem 1rem;
		background: transparent;
	}

	/* Enhanced Stats Grid */
	.stats-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
		margin-bottom: 1.5rem;
	}

	.stat-card {
		padding: 1.25rem;
		border-radius: 16px;
		background: rgba(255, 255, 255, 0.9);
		backdrop-filter: blur(10px);
		border: 1px solid rgba(228, 228, 231, 0.6);
		box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	}

	.stat-card:hover {
		transform: translateY(-2px);
		box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
	}

	.stat-value {
		font-size: 1.75rem;
		font-weight: 800;
		background: linear-gradient(135deg, #0364ff 0%, #0251d9 100%);
		-webkit-background-clip: text;
		-webkit-text-fill-color: transparent;
		background-clip: text;
	}

	/* Modern API Section */
	.api-section {
		background: rgba(255, 255, 255, 0.9);
		backdrop-filter: blur(10px);
		border: 1px solid rgba(228, 228, 231, 0.6);
		border-radius: 20px;
		padding: 1.5rem;
		margin-bottom: 1.5rem;
		box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
	}

	.api-title {
		font-size: 1.25rem;
		font-weight: 700;
		color: #1e293b;
		margin-bottom: 1rem;
	}

	.api-key-container {
		flex-direction: column;
		gap: 0.75rem;
	}

	.api-key-input {
		border-radius: 12px;
		border: 2px solid rgba(228, 228, 231, 0.6);
		background: rgba(248, 250, 252, 0.8);
		padding: 1rem;
		font-size: 0.875rem;
		transition: all 0.3s ease;
	}

	.api-key-input:focus {
		border-color: var(--primary);
		background: white;
		box-shadow: 0 0 0 3px rgba(3, 100, 255, 0.1);
	}

	.copy-btn, .toggle-btn {
		border-radius: 12px;
		border: 2px solid rgba(228, 228, 231, 0.6);
		background: white;
		padding: 1rem;
		font-weight: 600;
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	}

	.copy-btn:hover, .toggle-btn:hover {
		background: var(--primary);
		color: white;
		border-color: var(--primary);
		transform: translateY(-1px);
	}

	/* Enhanced Chat Interface */
	.chat-interface {
		height: 520px !important;
		border-radius: 20px;
		background: rgba(255, 255, 255, 0.9);
		backdrop-filter: blur(10px);
		border: 1px solid rgba(228, 228, 231, 0.6);
		box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
		overflow: hidden;
	}

	.chat-messages {
		padding: 1.25rem !important;
		background: transparent;
	}

	.chat-input-container {
		position: sticky;
		bottom: 0;
		left: 0;
		right: 0;
		background: rgba(255, 255, 255, 0.95);
		backdrop-filter: blur(20px);
		border-top: 1px solid rgba(228, 228, 231, 0.6);
		padding: 1rem;
	}

	#aiChatInput {
		min-height: 56px !important;
		border-radius: 16px;
		border: 2px solid rgba(228, 228, 231, 0.6);
		background: rgba(248, 250, 252, 0.8);
		padding: 1rem 1.25rem;
		font-size: 1rem;
		transition: all 0.3s ease;
	}

	#aiChatInput:focus {
		border-color: var(--primary);
		background: white;
		box-shadow: 0 0 0 3px rgba(3, 100, 255, 0.1);
	}

	/* Quick Questions Enhancement */
	.quick-questions {
		order: -1;
		margin-top: 0;
		margin-bottom: 1rem;
	}

	.quick-question-btn {
		background: rgba(255, 255, 255, 0.9);
		backdrop-filter: blur(10px);
		border: 1px solid rgba(228, 228, 231, 0.6);
		border-radius: 12px;
		padding: 0.875rem 1.25rem;
		font-weight: 600;
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	}

	.quick-question-btn:hover {
		background: var(--primary);
		color: white;
		transform: translateY(-2px);
		box-shadow: 0 8px 25px rgba(3, 100, 255, 0.25);
	}
}

@media (max-width: 480px) {
	.header {
		padding: 0.75rem 1rem;
	}
	.content {
		padding: 0.75rem;
	}
	.api-section {
		padding: 0.75rem;
	}
	.api-title {
		font-size: 1rem;
	}
	.chat-interface {
		height: 420px !important;
	}
	#aiChatInput {
		min-height: 52px !important;
	}
	.extension-btn {
		width: 100%;
		justify-content: center;
	}
}

/* =================== MOBILE SMALL SCREENS (≤576px) =================== */
@media (max-width: 576px) {
	/* Compact Mobile Header */
	.header {
		padding: 0.875rem 1rem;
	}

	.logo img {
		height: 32px;
		max-width: 120px;
	}

	.page-title {
		font-size: 1.25rem;
		font-weight: 800;
		background: linear-gradient(135deg, #0364ff 0%, #8b5cf6 100%);
		-webkit-background-clip: text;
		-webkit-text-fill-color: transparent;
		background-clip: text;
	}

	.welcome-message {
		font-size: 0.875rem;
		color: #64748b;
		font-weight: 500;
	}

	/* Smaller mobile navigation panel */
	.mobile-nav-panel {
		width: 260px;
	}

	/* Content optimizations for small screens */
	.content {
		padding: 1rem 0.875rem;
	}

	.stats-grid {
		grid-template-columns: 1fr !important;
		gap: 1rem !important;
		margin-bottom: 1.5rem;
	}

	.stat-card,
	.api-section,
	.listing-card {
		padding: 1.25rem !important;
		border-radius: 20px !important;
		background: rgba(255, 255, 255, 0.9) !important;
		backdrop-filter: blur(15px) !important;
		border: 1px solid rgba(228, 228, 231, 0.5) !important;
		box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
	}

	.api-section {
		border-radius: 24px !important;
		box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06) !important;
	}

	.listing-meta {
		gap: 0.75rem !important;
		flex-direction: column;
		align-items: flex-start;
	}

	.expanded-content {
		margin-top: 1rem !important;
		padding-top: 1rem !important;
		border-top: 1px solid rgba(228, 228, 231, 0.5) !important;
	}

	/* Enhanced Chat Interface */
	.chat-interface {
		height: 460px !important;
		border-radius: 24px !important;
		background: rgba(255, 255, 255, 0.9) !important;
		backdrop-filter: blur(15px) !important;
		border: 1px solid rgba(228, 228, 231, 0.5) !important;
		box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
	}

	.chat-messages {
		padding: 1rem !important;
	}

	.chat-input-container {
		position: sticky;
		bottom: env(safe-area-inset-bottom);
		background: rgba(255, 255, 255, 0.95);
		backdrop-filter: blur(25px);
		border-top: 1px solid rgba(228, 228, 231, 0.4);
		padding: 1rem;
		margin-bottom: 0;
	}

	#aiChatInput {
		min-height: 54px !important;
		border-radius: 18px !important;
		border: 2px solid rgba(228, 228, 231, 0.5) !important;
		background: rgba(248, 250, 252, 0.9) !important;
		backdrop-filter: blur(10px) !important;
		padding: 1rem 1.25rem !important;
		font-size: 1rem !important;
	}

	/* Enhanced Buttons - Show extension button in content if needed */
	.content .extension-btn {
		display: flex !important;
		width: 100% !important;
		justify-content: center !important;
		border-radius: 16px !important;
		padding: 1rem 1.5rem !important;
		font-weight: 700 !important;
		background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%) !important;
		box-shadow: 0 4px 20px rgba(3, 100, 255, 0.25) !important;
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
	}

	.content .extension-btn:hover {
		transform: translateY(-2px) !important;
		box-shadow: 0 8px 30px rgba(3, 100, 255, 0.35) !important;
	}
}

/* Ultra small phones */
@media (max-width: 380px) {
	.nav-item { padding: 8px 10px !important; font-size: 0.75rem; }
	.page-title { font-size: 1rem; }
	.stat-value { font-size: 1.5rem; }
	.api-title { font-size: 1.05rem; }
	
	/* Smaller mobile navigation panel for ultra small screens */
	.mobile-nav-panel {
		width: 240px;
	}
	
	/* Compact hamburger menu */
	.hamburger-menu {
		padding: 0.375rem;
	}
	
	.hamburger-icon {
		width: 20px;
		height: 16px;
	}
}

/* =================== ENHANCED RESPONSIVE (Tablet & Mobile) =================== */
/* Tablet refinements */
@media (max-width: 1024px) {
	.sidebar {
		width: 220px;
	}
	.logo img {
		height: 38px;
		max-width: 150px;
	}
	.page-title {
		font-size: 1.25rem;
	}
	.stats-grid {
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
		gap: 1rem;
	}
}

/* Between mobile and tablet: two-column stats for better density */
@media (max-width: 768px) and (min-width: 481px) {
	.stats-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

/* =================== ENHANCED MOBILE TABLET EXPERIENCE (≤768px) =================== */
@media (max-width: 768px) {
	/* Modern Tablet-Style Sidebar */
	.sidebar {
		width: 100% !important;
		position: sticky;
		top: 0;
		z-index: 999;
		background: rgba(255, 255, 255, 0.95);
		backdrop-filter: blur(20px);
		border-right: none;
		border-bottom: 1px solid rgba(228, 228, 231, 0.4);
		box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
	}

	.sidebar-header {
		padding: 1rem 1.25rem;
		background: transparent;
	}

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

	/* Horizontal Scrollable Navigation */
	.nav-menu {
		display: flex;
		flex-direction: row;
		gap: 0.75rem;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding: 0.75rem 1rem;
		scrollbar-width: thin;
		scrollbar-color: rgba(203, 213, 224, 0.6) transparent;
	}

	.nav-menu::-webkit-scrollbar {
		height: 4px;
	}

	.nav-menu::-webkit-scrollbar-track {
		background: transparent;
	}

	.nav-menu::-webkit-scrollbar-thumb {
		background: rgba(203, 213, 224, 0.6);
		border-radius: 2px;
	}

	.nav-menu::-webkit-scrollbar-thumb:hover {
		background: rgba(160, 174, 192, 0.8);
	}

	/* Enhanced Navigation Items */
	.nav-item {
		margin: 0 !important;
		padding: 0.75rem 1.25rem !important;
		min-height: 44px !important;
		border-radius: 22px !important;
		background: rgba(255, 255, 255, 0.8) !important;
		backdrop-filter: blur(10px) !important;
		border: 1px solid rgba(228, 228, 231, 0.5) !important;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
		font-weight: 600 !important;
		font-size: 0.875rem !important;
		color: #64748b !important;
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
		white-space: nowrap;
		flex-shrink: 0;
	}

	.nav-item:hover {
		background: rgba(3, 100, 255, 0.08) !important;
		border-color: rgba(3, 100, 255, 0.2) !important;
		color: var(--primary) !important;
		transform: translateY(-1px) !important;
		box-shadow: 0 4px 16px rgba(3, 100, 255, 0.15) !important;
	}

	.nav-item.active {
		background: rgba(3, 100, 255, 0.12) !important;
		border-color: rgba(3, 100, 255, 0.3) !important;
		color: var(--primary) !important;
		transform: translateY(-2px) !important;
		box-shadow: 0 6px 20px rgba(3, 100, 255, 0.2) !important;
	}

	.nav-item.active::before {
		display: none !important;
	}

	.nav-item.active::after {
		content: "";
		position: absolute;
		top: -1px;
		left: 50%;
		transform: translateX(-50%);
		width: 16px;
		height: 2px;
		background: linear-gradient(90deg, var(--primary) 0%, #8b5cf6 100%);
		border-radius: 1px;
	}

	/* Quick Actions Enhancement */
	.quick-actions {
		flex-direction: row;
		gap: 0.75rem;
		border-bottom: none;
		padding: 0.5rem 1rem 0.75rem 1rem;
		background: transparent;
	}

	.quick-actions .nav-item {
		border-radius: 18px !important;
		padding: 0.625rem 1rem !important;
		min-height: 40px !important;
		font-size: 0.8125rem !important;
	}

	/* Content Area */
	.main-content {
		padding-top: 0.75rem;
		background: transparent;
	}

	/* Enhanced Cards */
	.listing-card {
		padding: 1.25rem !important;
		border-radius: 16px !important;
		background: rgba(255, 255, 255, 0.9) !important;
		backdrop-filter: blur(10px) !important;
		border: 1px solid rgba(228, 228, 231, 0.5) !important;
		box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
	}

	.listing-card:hover {
		transform: translateY(-2px) !important;
		box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
	}

	.listing-meta {
		gap: 0.75rem !important;
		flex-wrap: wrap;
	}

	.expanded-content {
		margin-top: 1rem !important;
		padding-top: 1rem !important;
		border-top: 1px solid rgba(228, 228, 231, 0.5) !important;
	}

	/* Enhanced Chat Input */
	.chat-input-container {
		position: sticky;
		bottom: env(safe-area-inset-bottom);
		padding: 1rem;
		padding-bottom: calc(1rem + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, 0.95);
		backdrop-filter: blur(20px);
		border-top: 1px solid rgba(228, 228, 231, 0.4);
		box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
	}

	#aiChatInput {
		border-radius: 16px !important;
		border: 2px solid rgba(228, 228, 231, 0.5) !important;
		background: rgba(248, 250, 252, 0.9) !important;
		backdrop-filter: blur(10px) !important;
		transition: all 0.3s ease !important;
	}

	#aiChatInput:focus {
		border-color: var(--primary) !important;
		background: white !important;
		box-shadow: 0 0 0 3px rgba(3, 100, 255, 0.1) !important;
	}
}

/* Small mobile refinements */
@media (max-width: 640px) {
	.api-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}
	.extension-btn {
		width: 100%;
	}
	.notification-btn {
		padding: 0.4rem;
	}
	.api-key-container {
		flex-direction: column;
	}
	.plans-grid, .upgrade-plans-grid {
		grid-template-columns: 1fr !important;
	}
}

/* =================== HAMBURGER MENU ANIMATIONS & MOBILE INTERACTIONS =================== */
@media (max-width: 768px) {
	/* Hamburger Menu Animation */
	.mobile-nav-panel {
		animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
	}

	.mobile-nav-panel:not(.active) {
		animation: slideOutRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
	}

	@keyframes slideInRight {
		from {
			right: -100%;
			opacity: 0;
		}
		to {
			right: 0;
			opacity: 1;
		}
	}

	@keyframes slideOutRight {
		from {
			right: 0;
			opacity: 1;
		}
		to {
			right: -100%;
			opacity: 0;
		}
	}

	/* Mobile Navigation Items Stagger Animation */
	.mobile-nav-item {
		opacity: 0;
		transform: translateX(20px);
		animation: slideInNavItem 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
	}

	.mobile-nav-item:nth-child(1) { animation-delay: 0.1s; }
	.mobile-nav-item:nth-child(2) { animation-delay: 0.15s; }
	.mobile-nav-item:nth-child(3) { animation-delay: 0.2s; }
	.mobile-nav-item:nth-child(4) { animation-delay: 0.25s; }
	.mobile-nav-item:nth-child(5) { animation-delay: 0.3s; }
	.mobile-nav-item:nth-child(6) { animation-delay: 0.35s; }
	.mobile-nav-item:nth-child(7) { animation-delay: 0.4s; }
	.mobile-nav-item:nth-child(8) { animation-delay: 0.45s; }

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

	/* Smooth Page Transitions */
	.main-content {
		animation: mobileSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	}

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

	/* Hamburger Menu Touch Feedback */
	.hamburger-menu:active {
		transform: scale(0.95);
		background: rgba(3, 100, 255, 0.15);
	}

	/* Mobile Navigation Panel Touch Gestures */
	.mobile-nav-panel {
		touch-action: pan-y;
	}

	/* Enhanced Overlay Animation */
	.mobile-nav-overlay {
		animation: fadeIn 0.3s ease forwards;
	}

	.mobile-nav-overlay:not(.active) {
		animation: fadeOut 0.2s ease forwards;
	}

	@keyframes fadeIn {
		from { opacity: 0; }
		to { opacity: 1; }
	}

	@keyframes fadeOut {
		from { opacity: 1; }
		to { opacity: 0; }
	}

	/* Enhanced Card Animations */
	.stat-card,
	.api-section,
	.listing-card {
		animation: mobileCardFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
		opacity: 0;
		transform: translateY(20px);
	}

	.stat-card:nth-child(1) { animation-delay: 0.1s; }
	.stat-card:nth-child(2) { animation-delay: 0.2s; }
	.stat-card:nth-child(3) { animation-delay: 0.3s; }
	.stat-card:nth-child(4) { animation-delay: 0.4s; }

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

	/* Touch-Friendly Button Animations */
	.extension-btn,
	.copy-btn,
	.toggle-btn,
	.quick-question-btn {
		position: relative;
		overflow: hidden;
	}

	.extension-btn::before,
	.copy-btn::before,
	.toggle-btn::before,
	.quick-question-btn::before {
		content: "";
		position: absolute;
		top: 50%;
		left: 50%;
		width: 0;
		height: 0;
		background: rgba(255, 255, 255, 0.3);
		border-radius: 50%;
		transform: translate(-50%, -50%);
		transition: width 0.6s, height 0.6s;
		pointer-events: none;
	}

	.extension-btn:active::before,
	.copy-btn:active::before,
	.toggle-btn:active::before,
	.quick-question-btn:active::before {
		width: 200px;
		height: 200px;
	}

	/* Haptic Feedback Simulation */
	.nav-item:active {
		transform: scale(0.95) !important;
		transition: transform 0.1s ease !important;
	}

	.stat-card:active,
	.listing-card:active {
		transform: scale(0.98) translateY(-1px) !important;
		transition: transform 0.1s ease !important;
	}

	/* Enhanced Input Focus Animation */
	.api-key-input:focus,
	#aiChatInput:focus {
		animation: mobileFocusPulse 0.3s ease-out;
	}

	@keyframes mobileFocusPulse {
		0% {
			transform: scale(1);
			box-shadow: 0 0 0 0 rgba(3, 100, 255, 0.4);
		}
		70% {
			transform: scale(1.02);
			box-shadow: 0 0 0 6px rgba(3, 100, 255, 0.1);
		}
		100% {
			transform: scale(1);
			box-shadow: 0 0 0 3px rgba(3, 100, 255, 0.1);
		}
	}

	/* Smooth Modal Animations */
	.modal-overlay.show .upgrade-modal,
	.video-popup-overlay .video-popup-modal {
		animation: mobileModalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
	}

	@keyframes mobileModalSlideUp {
		from {
			opacity: 0;
			transform: translateY(100px) scale(0.9);
		}
		to {
			opacity: 1;
			transform: translateY(0) scale(1);
		}
	}

	/* Loading States */
	.loading-shimmer {
		background: linear-gradient(
			90deg,
			rgba(248, 250, 252, 0.8) 25%,
			rgba(241, 245, 249, 0.9) 50%,
			rgba(248, 250, 252, 0.8) 75%
		);
		background-size: 200% 100%;
		animation: mobileShimmer 2s infinite;
	}

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

	/* Pull-to-Refresh Hint */
	.content::before {
		content: "";
		position: absolute;
		top: -20px;
		left: 50%;
		transform: translateX(-50%);
		width: 40px;
		height: 4px;
		background: rgba(3, 100, 255, 0.3);
		border-radius: 2px;
		opacity: 0;
		transition: opacity 0.3s ease;
	}

	.content.pull-hint::before {
		opacity: 1;
	}
}

/* =================== ULTRA-SMOOTH MOBILE PERFORMANCE =================== */
@media (max-width: 576px) {
	/* Hardware Acceleration */
	.sidebar,
	.header,
	.nav-item,
	.stat-card,
	.api-section,
	.listing-card,
	.chat-interface {
		transform: translateZ(0);
		-webkit-backface-visibility: hidden;
		backface-visibility: hidden;
		-webkit-perspective: 1000;
		perspective: 1000;
	}

	/* Optimized Transitions */
	* {
		-webkit-tap-highlight-color: rgba(3, 100, 255, 0.1);
		-webkit-touch-callout: none;
		-webkit-user-select: none;
		user-select: none;
	}

	input, textarea {
		-webkit-user-select: text;
		user-select: text;
	}

	/* Scroll Performance */
	.nav-menu,
	.chat-messages,
	.content {
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
	}

	/* Battery-Efficient Animations */
	@media (prefers-reduced-motion: reduce) {
		*,
		*::before,
		*::after {
			animation-duration: 0.01ms !important;
			animation-iteration-count: 1 !important;
			transition-duration: 0.01ms !important;
		}
	}
}