/* ===== MODERN CSS RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f9f9f9;
    color: #1f2937;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== HEADER STYLES ===== */
.header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 32px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
}

.header-nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: #64748b;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    color: #6366f1;
    background: #f8fafc;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.upgrade-btn {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #92400e;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
}

.upgrade-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 10px;
    transition: all 0.2s;
}

.profile-trigger:hover {
    background: #f8fafc;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 8px;
}

.usage-credits {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.user-name {
    font-size: 14px;
    color: #111827;
    font-weight: 600;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.dropdown-arrow {
    color: #64748b;
    font-size: 12px;
    transition: transform 0.2s;
}

.profile-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
}

.profile-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6;
    font-family: inherit;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: #6366f1;
}

.dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 12px 12px;
}

.dropdown-icon {
    font-size: 16px;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 32px 48px;
    display: grid;
    grid-template-columns: 3fr 280px;
    gap: 48px;
    align-items: start;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.main-title {
    font-size: 40px;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    text-align: left;
}

.subtitle {
    color: #64748b;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    max-width: none;
}


/* ===== ONBOARDING MULTI-STEP FORM STYLES ===== */

.onboarding-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 40px 20px;
}

.onboarding-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* ===== PROGRESS SECTION ===== */
.progress-container {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.progress-header {
    text-align: center;
    margin-bottom: 32px;
}

.progress-title {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.progress-subtitle {
    color: #64748b;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.progress-bar-container {
    margin-bottom: 24px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e5e7eb;
    transform: translateY(-50%);
    z-index: 1;
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    z-index: 2;
    transition: all 0.3s;
}

.progress-step.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.progress-step.completed {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.progress-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.step-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

.step-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    text-align: center;
    flex: 1;
}

.step-label.active {
    color: #6366f1;
    font-weight: 600;
}


/* Sales & Outreach Page Styles */

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

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0;
}

.sales-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

.sales-main {
    min-height: 600px;
}

.sales-sidebar {
    position: sticky;
    top: 2rem;
}

/* Input Method Tabs */
.input-method-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.tab-button {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-button:hover {
    color: #374151;
}

.tab-button.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* URL Analysis Preview */
.url-analysis-preview {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

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

.preview-header h4 {
    margin: 0;
    color: #374151;
}

.url-analysis-result {
    color: #374151;
}

.analysis-section {
    margin-bottom: 1rem;
}

.analysis-section h5 {
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.analysis-section ul {
    margin: 0;
    padding-left: 1rem;
}

.analysis-error {
    color: #ef4444;
    text-align: center;
    padding: 1rem;
}

/* Checkbox Group */
.checkbox-group {
    display: grid;
    gap: 0.75rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.checkbox-item:hover {
    background: #f9fafb;
}

.checkbox-item input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #2563eb;
}

/* Form Actions */
.form-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-width: 250px;
}

.btn-icon {
    margin-right: 0.5rem;
}

/* Generated Content */
.generated-content {
    margin-top: 2rem;
    animation: fadeIn 0.3s ease-in;
}

.card-actions {
    display: flex;
    gap: 1rem;
}

.generation-progress {
    padding: 2rem;
    text-align: center;
}

.progress-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
    color: #6b7280;
    font-size: 1rem;
}

.progress-item.active {
    color: #2563eb;
    font-weight: 500;
}

.progress-icon {
    font-size: 1.25rem;
}

.generation-error {
    text-align: center;
    padding: 2rem;
    color: #ef4444;
}

/* Materials Grid */
.materials-grid {
    display: grid;
    gap: 1.5rem;
}

.material-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.material-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.material-header h4 {
    margin: 0;
    color: #1f2937;
    font-size: 1.1rem;
}

.material-content {
    padding: 1.5rem;
    background: white;
}

.material-meta {
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Email Preview */
.email-preview {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.email-subject {
    padding: 0.75rem;
    background: #f3f4f6;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.email-body {
    line-height: 1.6;
    color: #374151;
}

/* Social Media Posts */
.social-post {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
}

.social-post:last-child {
    margin-bottom: 0;
}

.post-platform {
    font-weight: 600;
    color: #2563eb;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-content {
    color: #374151;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.post-meta {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Follow-up Sequence */
.follow-up-email {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
}

.follow-up-email:last-child {
    margin-bottom: 0;
}

.email-number {
    font-weight: 600;
    color: #2563eb;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Campaign Sidebar */
.campaigns-list {
    max-height: 400px;
    overflow-y: auto;
}

.campaign-item {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background-color 0.2s;
}

.campaign-item:hover {
    background: #f9fafb;
}

.campaign-item:last-child {
    border-bottom: none;
}

.campaign-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.campaign-meta {
    font-size: 0.875rem;
    color: #6b7280;
}

.event-name {
    margin-bottom: 0.25rem;
    font-style: italic;
}

.campaign-date {
    margin-bottom: 0.25rem;
}

.campaign-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-draft {
    background: #fef3c7;
    color: #92400e;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-completed {
    background: #dbeafe;
    color: #1e40af;
}

.empty-state {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 2rem 1rem;
}

/* Tips Section */
.tips-list {
    padding: 0;
}

.tip-item {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
    line-height: 1.5;
}

.tip-item:last-child {
    border-bottom: none;
}

.tip-item strong {
    color: #2563eb;
}

/* Button Variations */
.btn-small {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.btn-success {
    background: #059669;
    color: white;
}

.btn-success:hover {
    background: #047857;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sales-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .sales-sidebar {
        position: static;
        order: 2;
    }
    
    .materials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1.75rem;
    }
    
    .card-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .material-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .btn-large {
        min-width: auto;
        width: 100%;
    }
    
    .input-method-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        text-align: left;
        border-bottom: 1px solid #e5e7eb;
        border-right: none;
    }
    
    .tab-button.active {
        border-bottom-color: #e5e7eb;
        border-left: 3px solid #2563eb;
        background: #f8fafc;
    }
}

/* Loading States */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: #6b7280;
}

/* Copy Success Animation */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn-success {
    animation: successPulse 0.3s ease-in-out;
}




/* ===== FORM CONTAINER ===== */
.form-container {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

/* ===== STEP CONTENT ===== */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeInUp 0.4s ease-out;
}

.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.step-1 .step-icon {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.step-2 .step-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.step-3 .step-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.step-4 .step-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.step-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.step-description {
    color: #64748b;
    font-size: 16px;
    line-height: 1.5;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== FORM ELEMENTS ===== */
.form-group-large {
    margin-bottom: 32px;
}

.form-input-large {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.5;
    transition: all 0.3s;
    background: #fafbfc;
    font-family: inherit;
}

.form-input-large:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: white;
}

.form-textarea-large {
    width: 100%;
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.6;
    transition: all 0.3s;
    background: #fafbfc;
    font-family: inherit;
    resize: vertical;
    min-height: 200px;
}

.form-textarea-large:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: white;
}

.form-textarea-keynote {
    min-height: 300px;
}

.form-textarea-bio {
    min-height: 250px;
}

.form-textarea-testimonials {
    min-height: 250px;
}

/* ===== CHARACTER COUNTER ===== */
.character-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 14px;
}

.counter-text {
    color: #64748b;
}

.counter-requirement {
    color: #6b7280;
    font-weight: 500;
}

.counter-text.valid {
    color: #10b981;
    font-weight: 600;
}

.counter-text.invalid {
    color: #ef4444;
    font-weight: 600;
}

/* ===== FORM NAVIGATION ===== */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.btn-nav {
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-previous {
    background: #f8fafc;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-previous:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-next, .btn-submit {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-next:hover, .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.btn-submit {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-submit:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.btn-nav:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== PRIVACY NOTICE ===== */
.privacy-notice {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #93c5fd;
    border-radius: 12px;
    padding: 20px;
    margin: 32px 0;
    text-align: center;
}

.privacy-notice strong {
    color: #1e40af;
}

.privacy-notice p {
    color: #1e3a8a;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { 
        transform: rotate(0deg); 
    }
    100% { 
        transform: rotate(360deg); 
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .onboarding-container {
        padding: 20px 16px;
    }

    .progress-container,
    .form-container {
        padding: 24px;
    }

    .progress-title {
        font-size: 24px;
    }

    .step-title {
        font-size: 20px;
    }

    .step-description {
        font-size: 14px;
    }

    .progress-steps {
        margin-bottom: 12px;
    }

    .progress-step {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .step-label {
        font-size: 10px;
    }

    .step-icon {
        width: 64px;
        height: 64px;
        font-size: 24px;
    }

    .form-navigation {
        flex-direction: column;
        gap: 16px;
    }

    .btn-nav {
        width: 100%;
        padding: 16px;
    }

    .character-counter {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .onboarding-container {
        padding: 16px 12px;
    }

    .progress-container,
    .form-container {
        padding: 20px;
    }

    .progress-title {
        font-size: 20px;
    }

    .step-title {
        font-size: 18px;
    }

    .form-input-large,
    .form-textarea-large {
        padding: 14px 16px;
        font-size: 15px;
    }

    .form-textarea-keynote,
    .form-textarea-bio,
    .form-textarea-testimonials {
        min-height: 200px;
    }
}

/* ===== PROFILE PAGE STYLES ===== */

.profile-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 32px 20px;
}

.profile-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

/* ===== PROFILE HEADER ===== */
.profile-header {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 24px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 4px;
}

.profile-email {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 12px;
}

.profile-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-completed {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #065f46;
    border: 1px solid #10b981;
}

.status-processing {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #92400e;
    border: 1px solid #f59e0b;
}

.status-pending {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1e40af;
    border: 1px solid #3b82f6;
}

.status-failed {
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* ===== TAB NAVIGATION ===== */
.tab-navigation {
    background: white;
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    display: flex;
    gap: 4px;
    overflow-x: auto;
}

.tab-button {
    flex: 1;
    background: none;
    border: none;
    padding: 16px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    font-family: inherit;
}

.tab-button:hover {
    color: #6366f1;
    background: #f8fafc;
}

.tab-button.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.tab-icon {
    font-size: 16px;
}

/* ===== TAB CONTENT ===== */
.tab-content-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.tab-content {
    display: none;
    padding: 40px;
    animation: fadeInUp 0.4s ease-out;
}

.tab-content.active {
    display: block;
}

.tab-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.tab-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.tab-header p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.5;
}

/* ===== FORM STYLES ===== */
.profile-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background: #fafbfc;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: white;
}

.form-input.disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.content-textarea {
    min-height: 200px;
    font-size: 15px;
    line-height: 1.6;
}

.form-help {
    font-size: 14px;
    color: #64748b;
    margin-top: 6px;
    line-height: 1.4;
}

/* ===== CHARACTER COUNTER ===== */
.character-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 13px;
}

.counter-text {
    color: #64748b;
    font-weight: 500;
}

.counter-requirement {
    color: #6b7280;
    font-weight: 500;
}

.counter-text.valid {
    color: #10b981;
    font-weight: 600;
}

.counter-text.invalid {
    color: #ef4444;
    font-weight: 600;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-family: inherit;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: #f8fafc;
    color: #374151;
    border: 1px solid #d1d5db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== ALERTS ===== */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.alert-success {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-color: #10b981;
    color: #065f46;
}

.alert-error {
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    border-color: #ef4444;
    color: #991b1b;
}

.alert-info {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: #3b82f6;
    color: #1e40af;
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #6366f1;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.stat-content h3 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.stat-content p {
    color: #64748b;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

/* ===== CONTENT SUMMARY ===== */
.content-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.content-summary h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
}

.summary-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.summary-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.summary-item strong {
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.summary-preview {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
}

.summary-preview em {
    color: #9ca3af;
    font-style: italic;
}

.summary-preview small {
    color: #6b7280;
    font-size: 12px;
}

/* ===== SECURITY INFO ===== */
.security-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-top: 32px;
}

.security-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.security-info ul {
    margin: 0;
    padding-left: 20px;
    color: #4b5563;
    line-height: 1.6;
}

.security-info li {
    margin-bottom: 8px;
    font-size: 14px;
}

/* ===== QUICK ACTIONS ===== */
.quick-actions {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #93c5fd;
    border-radius: 12px;
    padding: 24px;
    margin-top: 32px;
}

.quick-actions h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 16px;
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .profile-container {
        padding: 20px 16px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .profile-avatar {
        width: 64px;
        height: 64px;
        font-size: 20px;
    }

    .profile-name {
        font-size: 24px;
    }

    .tab-navigation {
        overflow-x: auto;
        padding: 6px;
    }

    .tab-button {
        padding: 12px 16px;
        font-size: 13px;
        min-width: 120px;
    }

    .tab-content {
        padding: 24px;
    }

    .tab-header h2 {
        font-size: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .character-counter {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .profile-container {
        padding: 16px 12px;
    }

    .profile-header,
    .tab-content {
        padding: 20px;
    }

    .content-summary,
    .security-info,
    .quick-actions {
        padding: 20px;
    }

    .form-input,
    .form-textarea {
        padding: 10px 14px;
        font-size: 15px;
    }

    .content-textarea {
        min-height: 180px;
    }
}

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

/* ===== FOCUS STYLES ===== */
.btn:focus,
.form-input:focus,
.form-textarea:focus,
.tab-button:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* ===== LOADING STATES ===== */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }


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

/* ===== FOCUS STYLES ===== */
.btn-nav:focus,
.form-input-large:focus,
.form-textarea-large:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}



/* ===== ACTION BOXES ===== */
.action-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.action-box {
    
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.action-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: all 0.3s;
}

.action-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: #6366f1;
}

.action-box:hover::before {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.action-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.action-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
}

.action-info {
    flex: 1;
}

.action-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2px;
}

.action-subtitle {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.action-content {
    margin-bottom: 20px;
}

.action-content p {
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
    margin-bottom: 12px;
}

.action-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    font-family: inherit;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* ===== QUICK SUGGESTIONS SIDEBAR ===== */
.quick-suggestions {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 120px;
    height: fit-content;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.suggestions-header {
    margin-bottom: 20px;
}

.suggestions-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.suggestions-subtitle {
    font-size: 14px;
    color: #64748b;
    line-height: 1.4;
}










.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-item:hover {
    border-color: #6366f1;
    transform: translateX(4px);
}

.suggestion-item:last-child {
    margin-bottom: 0;
}

.suggestion-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.suggestion-icon.trending { background: linear-gradient(135deg, #ef4444, #dc2626); }
.suggestion-icon.quick { background: linear-gradient(135deg, #10b981, #059669); }
.suggestion-icon.popular { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.suggestion-icon.new { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.suggestion-content {
    flex: 1;
}

.suggestion-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.suggestion-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.3;
}

/* ===== MAIN CONTENT LAYOUT ===== */
.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

.main-content {
    padding: 0px 0;
}

/* ===== SECTIONS ===== */
.section {
    margin-bottom: 64px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 32px;
    text-align: left;
}

/* ===== CATEGORY TABS ===== */
.category-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 48px;
}

.tab {
    padding: 12px 24px;
    border-radius: 12px;
    border: 2px solid transparent;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
}

.tab.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.tab:hover:not(.active) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #6366f1;
    color: #6366f1;
    background: white;
}

/* ===== POPULAR CATEGORY ===== */
.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.popular-card {
    background: white;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 32px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.popular-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    transition: all 0.4s;
}

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

.popular-card.keynote::before,
.popular-card:hover::before {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.popular-card.social::before {
    background: linear-gradient(135deg, #10b981, #059669);
}

.popular-card.pitch::before {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.card-icon {
    font-size: 32px;
    margin-bottom: 20px;
    display: block;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-desc {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
}

/* ===== ALL TOPICS GRID ===== */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 20px;
}

.topic-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.topic-item:hover {
    border-color: #6366f1;
    background: #fafbfc;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.topic-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.topic-icon.keynote { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.topic-icon.bio { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.topic-icon.social { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.topic-icon.email { background: linear-gradient(135deg, #10b981, #059669); }
.topic-icon.headline { background: linear-gradient(135deg, #f59e0b, #d97706); }
.topic-icon.seo { background: linear-gradient(135deg, #ef4444, #dc2626); }
.topic-icon.onepager { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.topic-icon.proposal { background: linear-gradient(135deg, #ec4899, #be185d); }
.topic-icon.rephrase { background: linear-gradient(135deg, #06b6d4, #0891b2); }

.topic-content {
    flex: 1;
}

.topic-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
    line-height: 1.3;
}

.topic-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    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: 24px;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s;
    font-family: inherit;
}

.modal-close:hover {
    color: #374151;
    background: #f3f4f6;
}

.modal-body {
    padding: 24px;
    max-height: calc(80vh - 100px);
    overflow-y: auto;
}

/* ===== ACTIVITY STATS ===== */
.activity-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* ===== ACTIVITY CHART ===== */
.activity-chart {
    margin-top: 24px;
}

.activity-chart h4 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
}

.chart-bars {
    display: flex;
    gap: 12px;
    align-items: end;
    justify-content: space-between;
    height: 150px;
    padding: 16px 0;
}

.chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bar {
    background: linear-gradient(to top, #6366f1, #8b5cf6);
    width: 100%;
    max-width: 30px;
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: all 0.3s;
    position: relative;
}

.bar:hover {
    background: linear-gradient(to top, #4f46e5, #7c3aed);
    transform: scaleY(1.05);
}

.bar-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.bar-value {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

/* ===== ANIMATIONS ===== */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== LEGACY SUPPORT STYLES ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

.container-small {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 32px;
}

.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    padding: 32px;
    margin-bottom: 32px;
}

.card-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.card-subtitle {
    color: #64748b;
    font-size: 16px;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s;
    background: white;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-help {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: inherit;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-full {
    width: 100%;
}

/* ===== ALERTS ===== */
.alert {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: #f0fdf4;
    border-color: #10b981;
    color: #065f46;
}

.alert-error {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

.alert-info {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e40af;
}

.alert-warning {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #92400e;
}

/* ===== CHAT STYLES ===== */
.chat-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    height: calc(100vh - 200px);
    margin-top: 24px;
}

.chat-sidebar {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    overflow-y: auto;
}

.chat-main {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-history {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-history-item {
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    border: 1px solid transparent;
}

.chat-history-item:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.chat-history-item.active {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #93c5fd;
    font-weight: 500;
}

.chat-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.message {
    margin-bottom: 24px;
    animation: fadeInUp 0.3s ease-out;
}

.message-question {
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    border-left: 4px solid #6366f1;
}

.message-response {
    background: #f0fdf4;
    padding: 16px;
    border-radius: 12px;
    border-left: 4px solid #10b981;
    white-space: pre-wrap;
}

.message-time {
    font-size: 12px;
    color: #64748b;
    margin-top: 8px;
}

.chat-input-container {
    padding: 24px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}

.chat-input-form {
    display: flex;
    gap: 16px;
    align-items: end;
}

.chat-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    resize: none;
    min-height: 44px;
    max-height: 120px;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.2s;
}

.chat-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ===== LOADING STATES ===== */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .header-content {
        padding: 0 24px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 24px;
    }

    .content-wrapper {
        padding: 0 24px;
    }

    .header-nav {
        display: none;
    }

    .main-title {
        font-size: 32px;
    }

    .popular-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .topics-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .action-boxes {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .header {
        padding: 16px 20px;
    }

    .hero-content {
        padding: 24px 20px;
    }

    .content-wrapper {
        padding: 0 20px;
    }

    .main-content {
        padding: 24px 0;
    }

    .main-title {
        font-size: 28px;
    }

    .subtitle {
        font-size: 16px;
    }

    .category-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .tab {
        white-space: nowrap;
    }

    .popular-grid,
    .topics-grid {
        grid-template-columns: 1fr;
    }

    .topic-item {
        padding: 20px;
    }

    .popular-card {
        padding: 24px;
    }

    .profile-info {
        display: none;
    }

    .dropdown-menu {
        right: -50px;
    }

    .chat-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .chat-sidebar {
        order: 2;
        height: auto;
        max-height: 300px;
    }

    .activity-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .chart-bars {
        height: 120px;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 12px 16px;
    }

    .hero-content {
        padding: 20px 16px;
    }

    .content-wrapper {
        padding: 0 16px;
    }

    .main-content {
        padding: 20px 0;
    }

    .main-title {
        font-size: 24px;
    }

    .action-boxes {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .action-box {
        padding: 20px;
    }

    .section {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .modal-content {
        margin: 16px;
        max-height: calc(100vh - 32px);
    }

    .modal-header,
    .modal-body {
        padding: 20px;
    }

    .quick-suggestions {
        padding: 20px;
    }

    .container,
    .container-small {
        padding: 0 16px;
    }

    .card {
        padding: 24px;
    }
}

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

/* ===== FOCUS STYLES FOR ACCESSIBILITY ===== */
.btn:focus,
.form-input:focus,
.form-textarea:focus,
.chat-input:focus,
.tab:focus,
.suggestion-item:focus,
.topic-item:focus,
.popular-card:focus,
.action-box:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.profile-trigger:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
    border-radius: 10px;
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-sm { font-size: 14px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }

.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

/* ===== FOOTER ===== */
.footer {
    background: #111827;
    color: #9ca3af;
    text-align: center;
    padding: 40px 32px;
    margin-top: 80px;
}

.footer p {
    font-size: 14px;
}

/* ===== KEYBOARD NAVIGATION ENHANCEMENTS ===== */
.tab[tabindex="0"]:focus,
.suggestion-item[tabindex="0"]:focus,
.topic-item[tabindex="0"]:focus,
.popular-card[tabindex="0"]:focus,
.action-box[tabindex="0"]:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .quick-suggestions,
    .modal,
    .action-btn,
    .btn {
        display: none;
    }

    .hero-content,
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .popular-grid,
    .topics-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    body {
        background: white;
        color: black;
    }

    .card,
    .popular-card,
    .topic-item,
    .action-box {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}