/* =====================================================
   NARAVIO - Voice Learning LinkedIn Content Generator
   Clean, Professional Blue Theme
   ===================================================== */

:root {
    /* Colors - Blue primary */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --primary-glow: rgba(37, 99, 235, 0.15);
    
    --secondary: #7C3AED;
    --secondary-light: #EDE9FE;
    
    --success: #059669;
    --success-light: #ecfdf5;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --error: #dc2626;
    --error-light: #fef2f2;
    
    --bg-page: #f8f9fb;
    --bg-card: #FFFFFF;
    --bg-hover: #f1f5f9;
    --bg-active: #eff6ff;
    
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a68;
    --text-muted: #6b7280;
    --text-white: #FFFFFF;
    
    --border: #e5e7eb;
    --border-dark: #d1d5db;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 150ms ease;
    
    --sidebar-width: 260px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg-page); color: var(--text-primary); line-height: 1.6; }

/* =====================================================
   Loading Screen
   ===================================================== */
.loading-screen {
    position: fixed; inset: 0; background: var(--bg-card);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; transition: opacity 0.3s ease;
}
.loading-content { text-align: center; }
.logo-animated { margin-bottom: 24px; }
.logo-icon-lg {
    width: 56px; height: 56px;
    object-fit: contain;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.loading-dots { display: flex; gap: 8px; justify-content: center; }
.loading-dots span {
    width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
    animation: bounce 1.4s infinite ease-in-out both;
}
.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* =====================================================
   Logo
   ===================================================== */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; color: white;
}
.logo-icon-img { width: 32px; height: 32px; object-fit: contain; }
.logo-icon-sm { width: 32px; height: 32px; border-radius: 8px; font-size: 16px; }
.logo-text { font-size: 22px; font-weight: 700; color: var(--text-primary); }

/* =====================================================
   Auth Page
   ===================================================== */
.auth-page { display: flex; min-height: 100vh; }
.auth-left {
    flex: 1; padding: 60px;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    display: flex; align-items: center;
    position: relative;
    overflow: hidden;
}
.auth-left::before {
    content: '';
    position: absolute;
    top: -30%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    pointer-events: none;
}
.auth-branding { max-width: 480px; position: relative; z-index: 1; }
.auth-hero-title { font-size: 42px; font-weight: 700; line-height: 1.15; margin: 28px 0 16px; letter-spacing: -0.02em; }
.gradient-text { color: var(--primary); -webkit-text-fill-color: var(--primary); }
.auth-hero-subtitle { font-size: 17px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 36px; }
.auth-features { display: flex; flex-direction: column; gap: 16px; }
.auth-feature { 
    display: flex; gap: 14px; align-items: flex-start;
    padding: 16px; background: white; border-radius: 12px;
    border: 1px solid var(--border); transition: all 0.2s ease;
}
.auth-feature:hover { border-color: var(--primary); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1); }
.auth-feature-icon { 
    width: 40px; height: 40px; 
    background: #dbeafe; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.auth-feature strong { display: block; font-weight: 600; margin-bottom: 2px; font-size: 14px; }
.auth-feature p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.5; }

.auth-right { 
    width: 480px; padding: 60px; 
    display: flex; align-items: center; justify-content: center; 
    background: var(--bg-card); 
    border-left: 1px solid var(--border);
}
.auth-card { width: 100%; max-width: 360px; }
.auth-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.auth-subtitle { color: var(--text-muted); margin-bottom: 24px; }
.auth-switch { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-muted); }
.auth-forgot { text-align: center; margin-top: 16px; font-size: 14px; }
.auth-back-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; color: var(--text-muted); text-decoration: none;
    margin-bottom: 32px; transition: color 0.2s;
}
.auth-back-link:hover { color: var(--primary); }
.auth-back-link svg { width: 16px; height: 16px; }

/* =====================================================
   Forms
   ===================================================== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.form-input, .form-textarea {
    width: 100%; padding: 12px 14px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); font-family: var(--font);
    font-size: 15px; color: var(--text-primary);
    transition: var(--transition);
}
.form-input:focus, .form-textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-input-lg { padding: 16px 18px; font-size: 16px; }
.form-textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.form-hint { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

/* =====================================================
   Buttons
   ===================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px; font-family: var(--font); font-size: 14px; font-weight: 600;
    border-radius: var(--radius); border: none; cursor: pointer;
    transition: all 0.2s ease; text-decoration: none;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
    background: var(--primary);
    color: white; 
    box-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 4px 12px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover:not(:disabled) { 
    background: var(--primary-hover);
    transform: translateY(-1px); 
    box-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 8px 20px rgba(37, 99, 235, 0.35); 
}
.btn-secondary { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--border-dark); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-oauth {
    width: 100%; padding: 14px; background: var(--bg-card);
    border: 1px solid var(--border); font-weight: 500;
}
.btn-oauth:hover { background: var(--bg-hover); border-color: var(--border-dark); }

.divider { display: flex; align-items: center; margin: 24px 0; color: var(--text-muted); font-size: 13px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider span { padding: 0 16px; }

/* =====================================================
   Dashboard Layout
   ===================================================== */
.dashboard { display: flex; min-height: 100vh; }
.sidebar {
    width: var(--sidebar-width); background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
}
.sidebar.hidden { display: none; }
.main.full-width { margin-left: 0; }
.sidebar-header { padding: 20px; border-bottom: 1px solid var(--border); }
.sidebar-nav { flex: 1; padding: 12px; overflow-y: auto; }
.sidebar-footer { padding: 16px; border-top: 1px solid var(--border); }

.logo-text-only {
    font-family: var(--font);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-radius: var(--radius);
    color: var(--text-secondary); font-size: 14px; font-weight: 500;
    cursor: pointer; transition: var(--transition); margin-bottom: 4px;
    text-decoration: none;
}
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-item.active { background: var(--bg-active); color: var(--primary); }
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Locked Nav Items */
.nav-item.nav-locked {
    opacity: 0.7;
}
.nav-item.nav-locked:hover {
    opacity: 1;
}

.nav-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.nav-badge.pro {
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: #1d4ed8;
    border: 1px solid #93c5fd;
}

.nav-badge.growth {
    background: linear-gradient(135deg, #fef3c7, #fffbeb);
    color: #b45309;
    border: 1px solid #fcd34d;
}
.nav-item.nav-link-external {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(96, 165, 250, 0.08));
    border: 1px dashed rgba(37, 99, 235, 0.3);
}
.nav-item.nav-link-external:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(96, 165, 250, 0.15));
    border-color: var(--primary);
}

/* Credits Widget */
.credits-widget { 
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(96, 165, 250, 0.1)); 
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius); 
    padding: 14px; 
    margin-bottom: 12px; 
}
.credits-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.credits-label { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.credits-value { font-size: 18px; font-weight: 700; color: var(--primary); }
.credits-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.credits-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #60a5fa); border-radius: 3px; transition: width 0.5s ease; }
.credits-hint { 
    font-size: 10px; 
    color: var(--text-muted); 
    margin-top: 8px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 8px; 
}
.credits-divider { color: var(--border); }
.credits-cost-hint {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 16px;
}

/* Welcome Screen */
.welcome-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-page);
    padding: 40px;
}
.welcome-content {
    text-align: center;
    max-width: 480px;
}
.welcome-icon {
    font-size: 64px;
    margin-bottom: 24px;
}
.welcome-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.welcome-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.voice-score-widget { background: var(--bg-page); border-radius: var(--radius); padding: 14px; margin-bottom: 16px; }
.voice-score-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.voice-score-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.voice-score-value { font-size: 14px; font-weight: 700; color: var(--primary); }
.voice-score-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.voice-score-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #60a5fa); border-radius: 3px; transition: width 0.5s ease; }

.user-menu { display: flex; flex-direction: column; gap: 12px; }
.user-info { display: flex; align-items: center; gap: 12px; }
.user-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; color: white; font-size: 14px;
}
.user-details { flex: 1; min-width: 0; }
.user-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-email { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { flex: 1; margin-left: var(--sidebar-width); }
.main-content { padding: 32px 40px; max-width: 1200px; }

/* =====================================================
   Page Header
   ===================================================== */
.page-container { padding: 32px 40px; max-width: 1200px; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.page-title { font-size: 28px; font-weight: 700; }
.page-subtitle { color: var(--text-muted); margin-top: 4px; }

.voice-score-badge {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 16px; background: var(--primary-light);
    border-radius: 20px;
}
.voice-score-badge .score-label { font-size: 12px; color: var(--text-muted); }
.voice-score-badge .score-value { font-size: 16px; font-weight: 700; color: var(--primary); }

/* =====================================================
   Cards
   ===================================================== */
.card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
    box-shadow: var(--shadow-sm);
}
.card-header { margin-bottom: 20px; }
.card-title { font-size: 16px; font-weight: 600; }

/* =====================================================
   Onboarding
   ===================================================== */
.onboarding-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Select template needs different layout (scrollable with sticky footer) */
.onboarding-container:has(.select-content) {
    justify-content: flex-start;
    padding-bottom: 100px; /* Space for sticky footer */
}

.onboarding-container:has(.select-content) .onboarding-progress {
    margin-top: 0;
}
.onboarding-progress { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 48px; }
.progress-step { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.progress-step-icon {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--bg-page); border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600; color: var(--text-muted);
}
.progress-step.active .progress-step-icon { background: var(--primary); border-color: var(--primary); color: white; }
.progress-step.completed .progress-step-icon { background: var(--success); border-color: var(--success); color: white; }
.progress-step-label { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.progress-step.active .progress-step-label { color: var(--primary); }
.progress-step.completed .progress-step-label { color: var(--success); }
.progress-line { width: 80px; height: 2px; background: var(--border); margin: 0 8px 24px; }
.progress-line.completed { background: var(--success); }

.onboarding-content { text-align: center; }
.onboarding-illustration { margin-bottom: 24px; }
.illustration-circle {
    width: 100px; height: 100px; margin: 0 auto;
    background: var(--primary-light); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 48px;
}
.onboarding-title { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.onboarding-subtitle { font-size: 16px; color: var(--text-secondary); margin-bottom: 32px; }
.import-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; text-align: left; }

.progress-animation { display: flex; justify-content: center; margin-bottom: 24px; }
.spinner-lg {
    width: 48px; height: 48px;
    border: 3px solid var(--border); border-top-color: var(--primary);
    border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================
   Onboarding - Unified Branding & Animations
   ===================================================== */

/* Naravio Branding Header */
.onboarding-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
}

.onboarding-brand-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.onboarding-brand-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Step Indicator */
.onboarding-step-indicator {
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* Fade In Animation */
.onboarding-fade-in {
    animation: onboardingFadeIn 0.4s ease-out;
}

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

/* =====================================================
   Welcome Screen - Enhanced
   ===================================================== */
.welcome-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-page) 100%);
    padding: 40px 24px;
}

.welcome-content {
    max-width: 520px;
    text-align: center;
}

.welcome-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.welcome-title .gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Value Props */
.welcome-value-props {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
    text-align: left;
}

.value-prop {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.value-prop:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.value-prop-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.value-prop-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.value-prop-text strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.value-prop-text span {
    font-size: 14px;
    color: var(--text-secondary);
}

.welcome-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.welcome-hint {
    font-size: 13px;
    color: var(--text-muted);
}

/* =====================================================
   Selection Feedback - Goal & Preference Cards
   ===================================================== */
.goal-option input:checked + .goal-card,
.content-type-option input:checked + .content-type-card {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.goal-card,
.content-type-card {
    transition: all 0.2s ease;
}

.goal-card:hover,
.content-type-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =====================================================
   Analyze Screen - Centered Layout
   ===================================================== */
.analyze-content {
    text-align: center;
}

.analyze-ready {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.analyze-what-youll-get {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 32px 0;
    flex-wrap: wrap;
}

.analyze-get-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
}

.analyze-get-icon {
    font-size: 18px;
}

.analyze-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
}

/* Analyze Progress - Centered */
.analyze-progress {
    text-align: center;
    padding: 40px 0;
}

.analyze-progress-logo {
    margin-bottom: 24px;
}

.analyze-progress-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
}

.analyze-progress-bar {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    margin: 0 auto 16px;
    overflow: hidden;
}

.analyze-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    width: 0%;
    transition: width 0.5s ease;
}

.analyze-message {
    font-size: 14px;
    color: var(--text-secondary);
}

/* =====================================================
   Strategy Complete - Celebration & Cards
   ===================================================== */
.strategy-complete {
    text-align: center;
    padding: 20px 0;
}

/* Classy Checkmark Animation */
.celebration-container {
    margin-bottom: 24px;
}

.celebration-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.checkmark-svg {
    width: 100%;
    height: 100%;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--success);
    animation: checkmarkStroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: var(--success);
    stroke-width: 3;
    stroke-linecap: round;
    animation: checkmarkStroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

@keyframes checkmarkStroke {
    100% {
        stroke-dashoffset: 0;
    }
}

.strategy-complete-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.strategy-complete-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards in One Row */
.strategy-complete-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.complete-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: left;
}

.complete-card-icon {
    font-size: 24px;
    margin-bottom: 12px;
}

.complete-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.complete-card-content {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.complete-pillars-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.complete-pillar {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid;
}

.strategy-complete-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* =====================================================
   Select Screen - Simplified Header
   ===================================================== */
.select-header {
    text-align: center;
    margin-bottom: 24px;
}

.posts-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.posts-actions {
    display: flex;
    gap: 8px;
}

/* =====================================================
   Mobile Responsiveness for Onboarding
   ===================================================== */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 28px;
    }

    .welcome-subtitle {
        font-size: 15px;
    }

    .onboarding-progress {
        gap: 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .progress-line {
        width: 40px;
    }

    .progress-step-label {
        font-size: 11px;
    }

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

    .strategy-complete-cards {
        grid-template-columns: 1fr;
    }

    .analyze-what-youll-get {
        flex-direction: column;
        align-items: center;
    }

    .strategy-complete-actions {
        flex-direction: column;
    }

    .strategy-complete-actions .btn {
        width: 100%;
    }

    .sticky-footer-content {
        flex-wrap: wrap;
        gap: 12px;
    }

    .posts-actions-bar {
        flex-direction: column;
        gap: 12px;
    }

    .value-prop {
        padding: 14px 16px;
    }
}

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

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

    .onboarding-title {
        font-size: 22px;
    }

    .strategy-title {
        font-size: 22px;
    }

    .progress-step-label {
        display: none;
    }

    .progress-line {
        margin-bottom: 0;
    }
}

/* Personalized Onboarding Header */
.onboarding-personalized-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.onboarding-user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    display: flex;
    align-items: center;
    justify-content: center;
}

.onboarding-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.onboarding-avatar-initial {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.onboarding-greeting {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Select Profile Card (personalized) */
.select-profile-card {
    background: linear-gradient(135deg, var(--primary-light), var(--bg-card));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

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

.select-profile-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: var(--shadow);
}

.select-profile-photo-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: white;
    border: 3px solid white;
    box-shadow: var(--shadow);
}

.select-profile-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.select-profile-info p {
    font-size: 14px;
    color: var(--text-secondary);
}

.select-profile-hint {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-bottom: 0;
}

/* Analyze Preview Items */
.analyze-preview-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 320px;
    margin: 0 auto 32px;
    text-align: left;
}

.analyze-preview-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-page);
    border-radius: var(--radius);
    font-size: 14px;
}

.analyze-preview-icon {
    font-size: 20px;
}

.analyze-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Analyze Progress Bar */
.analyze-progress-logo {
    margin-bottom: 24px;
}

.analyze-progress-bar {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    margin: 24px auto;
    overflow: hidden;
}

.analyze-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    width: 0%;
    transition: width 0.5s ease;
}

.analyze-message {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Strategy Complete Summary */
.strategy-complete-header {
    margin-bottom: 32px;
}

.complete-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.complete-summary-card {
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: left;
}

.complete-summary-icon {
    font-size: 24px;
    margin-bottom: 12px;
}

.complete-summary-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.complete-summary-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.complete-pillars-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.complete-pillar {
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid;
}

/* =====================================================
   Select Posts
   ===================================================== */
.select-content { max-width: 900px; margin: 0 auto; }
.profile-card-large {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
    display: flex; align-items: center; gap: 20px; margin-bottom: 32px;
}
.profile-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.profile-photo-placeholder {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 700; color: white;
}
.profile-info h3 { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.profile-info p { color: var(--text-secondary); font-size: 14px; }

.posts-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 16px; }
.posts-header-left h2 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.posts-header-left p { font-size: 14px; color: var(--text-muted); }
.posts-header-right { display: flex; align-items: center; gap: 12px; }
.selection-badge {
    background: var(--primary-light); color: var(--primary);
    padding: 6px 14px; border-radius: 20px; font-size: 14px; font-weight: 600;
}

.posts-grid { display: flex; flex-direction: column; gap: 16px; padding-bottom: 120px; }
.post-card {
    background: var(--bg-card); border: 2px solid var(--border);
    border-radius: var(--radius-lg); padding: 20px;
    cursor: pointer; transition: all var(--transition);
}
.post-card:hover { border-color: var(--border-dark); box-shadow: var(--shadow); }
.post-card.selected { border-color: var(--primary); background: linear-gradient(to bottom, var(--primary-light), var(--bg-card)); }
.post-card.auto-deselected { opacity: 0.6; }

.post-card-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.checkbox-wrapper { flex-shrink: 0; margin-top: 2px; }
.checkbox-wrapper input { display: none; }
.checkbox-custom {
    width: 22px; height: 22px; border: 2px solid var(--border-dark);
    border-radius: 6px; display: flex; align-items: center; justify-content: center;
    transition: var(--transition); cursor: pointer; background: var(--bg-card);
}
.checkbox-wrapper input:checked + .checkbox-custom { background: var(--primary); border-color: var(--primary); }
.checkbox-wrapper input:checked + .checkbox-custom::after { content: '✓'; color: white; font-size: 14px; font-weight: 600; }

.post-author { display: flex; align-items: center; gap: 10px; flex: 1; }
.post-author-photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.post-author-photo-placeholder {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 600; color: white;
}
.post-author-info { display: flex; flex-direction: column; }
.post-author-name { font-size: 14px; font-weight: 600; }
.post-date { font-size: 12px; color: var(--text-muted); }
.post-meta { display: flex; gap: 8px; }
.post-badge { font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 4px; background: var(--bg-page); color: var(--text-muted); }
.post-card-content { font-size: 14px; color: var(--text-primary); line-height: 1.7; }
.post-card-content p { margin: 0 0 12px; }
.post-engagement { display: flex; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.engagement-item { font-size: 13px; color: var(--text-muted); }

.sticky-footer {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--bg-card); border-top: 1px solid var(--border);
    padding: 16px 40px; box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
    z-index: 100;
}
/* When inside dashboard, account for sidebar */
.dashboard .sticky-footer {
    left: var(--sidebar-width);
}
.sticky-footer-content { max-width: 900px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.selection-summary { display: flex; align-items: center; gap: 8px; }
.selection-count { font-size: 15px; }
.selection-hint { font-size: 13px; color: var(--text-muted); }

/* =====================================================
   Generate Page
   ===================================================== */
.generate-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 1024px) { .generate-layout { grid-template-columns: 1fr; } }

.sliders-section { background: var(--bg-page); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.sliders-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.sliders-header h4 { font-size: 14px; font-weight: 600; }
.slider-item { margin-bottom: 20px; }
.slider-item:last-child { margin-bottom: 0; }
.slider-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.slider-label { font-size: 13px; font-weight: 500; }
.slider-value { font-size: 13px; font-weight: 600; color: var(--primary); }
.slider-input { width: 100%; height: 6px; -webkit-appearance: none; background: var(--border); border-radius: 3px; cursor: pointer; }
.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none; width: 18px; height: 18px;
    background: var(--primary); border-radius: 50%; cursor: pointer;
    box-shadow: 0 2px 6px var(--primary-glow);
}
.slider-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); margin-top: 6px; }

.empty-output {
    height: 300px; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: var(--bg-card); border: 2px dashed var(--border);
    border-radius: var(--radius-lg); color: var(--text-muted);
}
.empty-icon { font-size: 48px; margin-bottom: 12px; }

/* Generated Post */
.generated-post-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
}
.generated-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--bg-page);
}
.generated-meta { display: flex; align-items: center; gap: 12px; }
.generated-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; background: var(--primary-light);
    color: var(--primary); border-radius: 20px; font-size: 12px; font-weight: 600;
}
.voice-match { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); }
.match-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.generated-content-wrapper { padding: 24px; }
.generated-content { font-size: 15px; line-height: 1.8; white-space: pre-wrap; }
.generated-footer { padding: 20px; border-top: 1px solid var(--border); }
.feedback-section { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.feedback-label { font-size: 13px; color: var(--text-muted); }
.feedback-buttons { display: flex; gap: 8px; }
.feedback-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--bg-card);
    font-size: 13px; font-weight: 500; cursor: pointer; transition: var(--transition);
}
.feedback-btn:hover { background: var(--bg-hover); }
.feedback-btn.active[data-feedback="up"] { background: var(--success-light); border-color: var(--success); color: var(--success); }
.feedback-btn.active[data-feedback="down"] { background: var(--error-light); border-color: var(--error); color: var(--error); }
.feedback-btn svg { width: 16px; height: 16px; }
.action-buttons { display: flex; gap: 12px; }

/* =====================================================
   Modals
   ===================================================== */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; padding: 24px;
}
.modal {
    background: var(--bg-card); border-radius: var(--radius-lg);
    max-width: 500px; width: 100%; max-height: 90vh; overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.modal-large { max-width: 900px; }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: flex-start; }
.modal-title { font-size: 18px; font-weight: 600; }
.modal-close { background: none; border: none; font-size: 24px; color: var(--text-muted); cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--text-primary); }
.modal-body { padding: 24px; max-height: 60vh; overflow-y: auto; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 12px; }

.edit-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 768px) { .edit-comparison { grid-template-columns: 1fr; } }
.edit-column { display: flex; flex-direction: column; }
.edit-column-header { font-size: 13px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.badge-success { background: var(--success-light); color: var(--success); padding: 2px 8px; border-radius: 4px; font-size: 11px; }
.edit-content {
    flex: 1; padding: 16px; background: var(--bg-page);
    border-radius: var(--radius); font-size: 14px; line-height: 1.7;
    white-space: pre-wrap; min-height: 200px; border: 1px solid var(--border);
}
.edit-textarea {
    flex: 1; padding: 16px; border: 1px solid var(--primary);
    border-radius: var(--radius); font-size: 14px; line-height: 1.7;
    min-height: 200px; resize: none; font-family: var(--font);
}
.edit-textarea:focus { outline: none; box-shadow: 0 0 0 3px var(--primary-glow); }

.feedback-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feedback-option {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border: 1px solid var(--border);
    border-radius: var(--radius); cursor: pointer; transition: var(--transition);
}
.feedback-option:hover { background: var(--bg-hover); }
.feedback-option input { width: 18px; height: 18px; accent-color: var(--primary); }

/* =====================================================
   Voice Profile & Learnings
   ===================================================== */
.analysis-section { margin-bottom: 24px; }
.analysis-title { font-size: 12px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.analysis-content { color: var(--text-secondary); line-height: 1.7; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 6px 12px; background: var(--bg-page); border: 1px solid var(--border); border-radius: 6px; font-size: 13px; }
.tag-primary { background: var(--primary-light); border-color: transparent; color: var(--primary); }
.rules-list { display: flex; flex-direction: column; gap: 8px; }
.rule { padding: 12px 16px; border-radius: var(--radius); font-size: 14px; }
.rule.do { background: var(--success-light); color: #065F46; }
.rule.dont { background: var(--error-light); color: #991B1B; }

.learning-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px; margin-bottom: 12px;
}
.learning-type { font-size: 11px; font-weight: 600; color: var(--primary); text-transform: uppercase; margin-bottom: 6px; }
.learning-text { font-size: 14px; color: var(--text-primary); }
.learning-meta { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

/* =====================================================
   History
   ===================================================== */
/* History Cards - Enhanced */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.history-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.history-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow);
}

.history-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-hover);
}

.history-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.history-date {
    font-size: 12px;
    color: var(--text-muted);
}

.history-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.history-badge.badge-success {
    background: var(--success-light);
    color: #065F46;
}

.history-badge.badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

.history-topic {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.history-card-body {
    padding: 16px 20px;
}

.history-preview,
.history-full {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    white-space: pre-wrap;
}

.history-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.history-expand-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.history-expand-btn.expanded svg {
    transform: rotate(180deg);
}

.history-expand-btn svg {
    transition: transform var(--transition);
}

.history-card-actions {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.history-card-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.history-card-actions .btn svg {
    flex-shrink: 0;
}

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

.history-edit-btn:hover {
    color: var(--warning, #F59E0B);
}

.history-reuse-btn:hover {
    color: var(--success);
}

@media (max-width: 600px) {
    .history-card-actions {
        flex-wrap: wrap;
    }

    .history-card-actions .btn {
        flex: 1;
        justify-content: center;
        min-width: 100px;
    }
}

/* =====================================================
   Alerts & Toast
   ===================================================== */
.alert { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.alert-error { background: var(--error-light); border: 1px solid rgba(239,68,68,0.3); color: #991B1B; }
.alert-success { background: var(--success-light); border: 1px solid rgba(16,185,129,0.3); color: #065F46; }

.toast {
    position: fixed; bottom: 24px; right: 24px; padding: 14px 20px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    font-size: 14px; font-weight: 500; z-index: 9999;
    transform: translateY(100px); opacity: 0; transition: all 0.3s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-color: var(--success); background: var(--success-light); color: #065F46; }
.toast.error { border-color: var(--error); background: var(--error-light); color: #991B1B; }

/* =====================================================
   Utilities
   ===================================================== */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.link { color: var(--primary); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }
.mb-md { margin-bottom: 16px; }
.mt-md { margin-top: 16px; }

/* =====================================================
   Topic Header (Generate Page)
   ===================================================== */
.topic-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.topic-header .form-label {
    margin-bottom: 0;
}

.topic-header .btn-ghost {
    color: var(--primary);
    font-size: 13px;
}

.topic-header .btn-ghost:hover {
    background: var(--primary-light);
}

/* =====================================================
   Topic Ideas Page
   ===================================================== */
.prompts-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.prompt-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.prompt-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    transform: translateY(-2px);
}

.prompt-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.prompt-content {
    flex: 1;
    min-width: 0;
}

.prompt-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.prompt-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 8px;
}

.prompt-context {
    font-size: 13px;
    color: var(--text-muted);
}

.prompt-action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition);
}

.prompt-card:hover .prompt-action {
    opacity: 1;
    transform: translateX(0);
}

.prompt-action svg {
    width: 14px;
    height: 14px;
}

/* Save Button on Prompt Cards */
.prompt-save-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    opacity: 0;
    transition: all var(--transition);
    border-radius: var(--radius);
    color: var(--text-muted);
}

.prompt-card {
    position: relative;
}

.prompt-card:hover .prompt-save-btn {
    opacity: 1;
}

.prompt-save-btn:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

.prompt-save-btn:hover svg {
    fill: var(--primary);
}

/* Saved Ideas Section */
.saved-ideas-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

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

.saved-ideas-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.saved-ideas-count {
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.saved-ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

.saved-idea-card {
    background: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
}

.saved-idea-card:hover {
    box-shadow: 0 0 0 3px var(--primary-glow);
    transform: translateY(-2px);
}

.saved-idea-card .prompt-icon {
    font-size: 20px;
}

.saved-idea-card .prompt-label {
    font-size: 10px;
    margin-bottom: 4px;
}

.saved-idea-card .prompt-text {
    font-size: 14px;
}

.saved-idea-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity var(--transition);
}

.saved-idea-card:hover .saved-idea-actions {
    opacity: 1;
}

.saved-idea-use-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.saved-idea-use-btn:hover {
    background: var(--primary-hover);
}

.saved-idea-delete-btn {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.saved-idea-delete-btn:hover {
    background: var(--error);
    color: white;
}

.section-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Skeleton Loading */
.prompt-skeleton {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.skeleton-icon {
    width: 32px;
    height: 32px;
    background: var(--bg-hover);
    border-radius: 8px;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-content {
    flex: 1;
}

.skeleton-label {
    width: 100px;
    height: 12px;
    background: var(--bg-hover);
    border-radius: 4px;
    margin-bottom: 10px;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-text {
    width: 80%;
    height: 20px;
    background: var(--bg-hover);
    border-radius: 4px;
    margin-bottom: 10px;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-context {
    width: 60%;
    height: 14px;
    background: var(--bg-hover);
    border-radius: 4px;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Empty/Error State */
.prompts-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.prompts-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.prompts-empty h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.prompts-empty p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* How It Works Card */
.how-it-works-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.how-it-works-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.how-item {
    text-align: center;
}

.how-item-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.how-item-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Refresh Button Loading State */
#refresh-prompts-btn.loading svg {
    animation: spin 1s linear infinite;
}

/* =====================================================
   Profile Optimizer
   ===================================================== */

.profile-optimizer-page .optimizer-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 20px;
    align-items: start;
}

.optimizer-left, .optimizer-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.optimizer-left {
    position: sticky;
    top: 20px;
}

/* LinkedIn Preview Card - Compact */
.li-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    font-size: 13px;
}

.li-banner {
    height: 80px;
    background-size: cover;
    background-position: center;
}

.li-profile-header {
    display: flex;
    gap: 12px;
    padding: 0 16px 16px;
    margin-top: -30px;
}

.li-profile-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--bg-card);
    object-fit: cover;
    background: var(--bg-hover);
    flex-shrink: 0;
}

.li-profile-photo-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--bg-card);
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.li-profile-info {
    flex: 1;
    padding-top: 34px;
    min-width: 0;
}

.li-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.li-headline {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 2px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.li-location {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.li-stats {
    display: flex;
    gap: 12px;
}

.li-stat {
    font-size: 11px;
    color: var(--text-secondary);
}

.li-stat strong {
    color: var(--primary);
}

.li-section {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}

.li-section-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.li-about {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.li-experience-item, .li-education-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.li-experience-item:last-child, .li-education-item:last-child {
    margin-bottom: 0;
}

.li-exp-icon, .li-edu-icon {
    font-size: 16px;
}

.li-exp-title, .li-edu-school {
    font-size: 12px;
    font-weight: 600;
}

.li-exp-company, .li-edu-degree {
    font-size: 11px;
    color: var(--text-secondary);
}

.li-exp-duration {
    font-size: 10px;
    color: var(--text-muted);
}

.li-stats-bar {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding: 12px 16px;
}

.li-stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.li-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.li-stat-label {
    font-size: 10px;
    color: var(--text-muted);
}

/* Persona Card - Compact */
.persona-card {
    padding: 16px;
}

.persona-card .card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.persona-card .text-muted {
    font-size: 12px;
}

.persona-card .form-group {
    margin-bottom: 12px;
}

.persona-card .form-label {
    font-size: 12px;
    margin-bottom: 4px;
}

.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

#score-profile-btn {
    padding: 12px;
    font-size: 14px;
}

.credits-cost-hint {
    font-size: 11px;
    text-align: center;
}

/* Score Results Empty State */
.empty-score-state {
    text-align: center;
    padding: 30px 16px;
}

.empty-score-state .empty-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.empty-score-state h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.empty-score-state p {
    font-size: 12px;
}

/* Analyzing State - Compact */
.analyzing-state {
    text-align: center;
    padding: 30px 16px;
}

.analyzing-state h3 {
    margin: 12px 0 6px;
    font-size: 15px;
}

.analyzing-state p {
    font-size: 12px;
}

.analysis-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-top: 16px;
    text-align: left;
}

.analysis-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-hover);
    border-radius: var(--radius);
    opacity: 0.4;
    transition: all 0.3s ease;
    font-size: 11px;
}

.analysis-step.active {
    opacity: 1;
    background: var(--primary-light);
}

.analysis-step.done {
    opacity: 1;
    background: var(--success-light);
}

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

/* Score Results - Compact UI */
.score-compact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.score-header-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    background: var(--bg-hover);
    border-radius: var(--radius-lg);
}

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 5px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    flex-shrink: 0;
}

.score-big {
    font-size: 28px;
    font-weight: 800;
}

.score-meta {
    flex: 1;
}

.score-grade-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 4px;
}

.score-context {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 8px;
}

.strengths-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.strength-badge {
    font-size: 11px;
    padding: 3px 8px;
    background: var(--success-light);
    color: var(--success);
    border-radius: 10px;
    font-weight: 500;
}

/* Score Tabs */
.score-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.score-tab {
    padding: 10px 16px;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
}

.score-tab:hover {
    color: var(--text-primary);
}

.score-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.score-tab-content {
    padding-top: 16px;
}

.score-tab-content.hidden {
    display: none;
}

/* Score Grid - Compact Rows */
.score-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.score-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: var(--bg-hover);
    border-radius: var(--radius);
}

.score-row-name {
    width: 140px;
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
}

.score-row-bar {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.score-row-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.score-row-value {
    width: 32px;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
}

/* Recommendation Items - Compact */
.rec-item {
    padding: 12px;
    background: var(--bg-hover);
    border-radius: var(--radius);
    margin-bottom: 10px;
    border-left: 3px solid var(--border);
}

.rec-item.priority-high {
    border-left-color: var(--error);
}

.rec-item.priority-medium {
    border-left-color: var(--warning);
}

.rec-item.priority-low {
    border-left-color: var(--success);
}

.rec-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.rec-badge {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.rec-impact-badge {
    font-size: 10px;
    padding: 2px 6px;
    background: var(--success-light);
    color: var(--success);
    border-radius: 8px;
    font-weight: 500;
}

.rec-item h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.rec-item p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Score History - Inline */
.score-history-card {
    padding: 16px;
}

.score-history-card h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.history-scores {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.history-score-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--bg-hover);
    border-radius: var(--radius);
}

.history-score {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.history-date {
    font-size: 10px;
    color: var(--text-muted);
}

/* Nav Feature Link */
.nav-item.nav-link-feature {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(96, 165, 250, 0.1));
    border: 1px dashed var(--primary);
}

.nav-item.nav-link-feature:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(96, 165, 250, 0.15));
}

/* User Avatar with Photo */
.user-avatar.has-photo {
    padding: 0;
    overflow: hidden;
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Score Error */
.score-error {
    text-align: center;
    padding: 40px;
}

.score-error p {
    margin-bottom: 16px;
    color: var(--error);
}

/* =====================================================
   Pricing Modal
   ===================================================== */

.pricing-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.pricing-option {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
}

.pricing-option:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.pricing-option.popular {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary-light), var(--bg-card));
}

.pricing-option .popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 10px;
    white-space: nowrap;
}

.pricing-option-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.pricing-option-posts {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.pricing-option-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.pricing-option .btn {
    width: 100%;
}

@media (max-width: 600px) {
    .pricing-options {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   Skeleton Loading States
   ===================================================== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite ease-in-out;
    border-radius: var(--radius-sm);
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text { height: 16px; margin-bottom: 8px; }
.skeleton-text.short { width: 60%; }
.skeleton-text.medium { width: 80%; }
.skeleton-text.long { width: 100%; }
.skeleton-title { height: 24px; width: 50%; margin-bottom: 12px; }
.skeleton-avatar { width: 48px; height: 48px; border-radius: 50%; }
.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}
.skeleton-stat { width: 80px; height: 32px; }
.skeleton-button { width: 120px; height: 40px; border-radius: var(--radius); }
.skeleton-textarea { height: 120px; width: 100%; }
.skeleton-post { height: 180px; width: 100%; }

/* Skeleton layouts */
.skeleton-dashboard {
    display: grid;
    gap: 24px;
}
.skeleton-stats-row {
    display: flex;
    gap: 16px;
}
.skeleton-stats-row .skeleton-stat-card {
    flex: 1;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.skeleton-stat-card .skeleton-stat-value { height: 32px; width: 60px; margin-bottom: 8px; }
.skeleton-stat-card .skeleton-stat-label { height: 14px; width: 80%; }

.skeleton-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
.skeleton-post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}
.skeleton-post-card .skeleton-post-header {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}
.skeleton-post-card .skeleton-post-content { height: 80px; margin-bottom: 12px; }
.skeleton-post-card .skeleton-post-footer { height: 24px; width: 40%; }

/* Progress steps for long operations */
.progress-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
    margin: 40px auto;
}
.progress-step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    opacity: 0.5;
    transition: all 0.3s ease;
}
.progress-step.active {
    opacity: 1;
    border-color: var(--primary);
    background: var(--primary-light);
}
.progress-step.completed {
    opacity: 1;
    border-color: var(--success);
}
.progress-step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.progress-step.active .progress-step-icon {
    background: var(--primary);
    color: white;
}
.progress-step.completed .progress-step-icon {
    background: var(--success);
    color: white;
}
.progress-step-content { flex: 1; }
.progress-step-title { font-weight: 600; font-size: 14px; color: var(--text-primary); }
.progress-step-desc { font-size: 13px; color: var(--text-muted); }
.progress-step-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Typing animation for generated content */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: var(--bg-hover);
    border-radius: var(--radius);
}
.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* Pulse animation for active elements */
.pulse {
    animation: pulse-ring 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse-ring {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* =====================================================
   Onboarding Tooltips
   ===================================================== */
.onboarding-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9990;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.onboarding-overlay.active { opacity: 1; }

.onboarding-spotlight {
    position: absolute;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
    border-radius: var(--radius);
    z-index: 9991;
    pointer-events: none;
}

.onboarding-tooltip {
    position: absolute;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 340px;
    box-shadow: var(--shadow-xl);
    z-index: 9992;
    animation: tooltipFadeIn 0.3s ease;
}
@keyframes tooltipFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.onboarding-tooltip::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--bg-card);
    transform: rotate(45deg);
}
.onboarding-tooltip.arrow-top::before { top: -6px; left: 24px; }
.onboarding-tooltip.arrow-bottom::before { bottom: -6px; left: 24px; }
.onboarding-tooltip.arrow-left::before { left: -6px; top: 24px; }
.onboarding-tooltip.arrow-right::before { right: -6px; top: 24px; }

.onboarding-tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.onboarding-tooltip-step {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    background: var(--primary-light);
    padding: 4px 10px;
    border-radius: 100px;
}
.onboarding-tooltip-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}
.onboarding-tooltip-close:hover { color: var(--text-primary); }

.onboarding-tooltip-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.onboarding-tooltip-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.onboarding-tooltip-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.onboarding-tooltip-dots {
    display: flex;
    gap: 6px;
}
.onboarding-tooltip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
}
.onboarding-tooltip-dot.active {
    background: var(--primary);
}
.onboarding-tooltip-actions {
    display: flex;
    gap: 8px;
}
.onboarding-tooltip .btn-skip {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 8px 12px;
}
.onboarding-tooltip .btn-skip:hover { color: var(--text-primary); }

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 1024px) {
    .auth-page { flex-direction: column; }
    .auth-left { display: none; }
    .auth-right { width: 100%; padding: 40px 24px; }
    .how-it-works-grid { grid-template-columns: 1fr; gap: 16px; }
    .profile-optimizer-page .optimizer-layout { grid-template-columns: 1fr; }
    .optimizer-left { position: static; }
}
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .main { margin-left: 0; }
    .sticky-footer { left: 0; }
    .main-content, .page-container { padding: 24px 16px; }
    .prompt-card { padding: 16px; }
    .prompt-action { display: none; }
    .page-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .score-row-name { width: 100px; font-size: 12px; }
    .skeleton-stats-row { flex-direction: column; }
    .onboarding-tooltip { max-width: 300px; padding: 20px; }
}

/* =====================================================
   Enhanced Welcome Screen (First-Time Users)
   ===================================================== */
.welcome-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 50%, #f0fdf4 100%);
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.welcome-screen::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.welcome-screen::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.welcome-content {
    text-align: center;
    max-width: 520px;
    position: relative;
    z-index: 1;
}

.welcome-logo {
    margin-bottom: 32px;
}

.welcome-logo-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    animation: welcome-pulse 2s ease-in-out infinite;
}

@keyframes welcome-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.welcome-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary), #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.welcome-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.welcome-steps {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.welcome-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 140px;
    transition: all 0.2s ease;
}

.welcome-step:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.welcome-step-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.welcome-step-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.welcome-cta {
    margin-bottom: 16px;
}

.welcome-cta .btn {
    padding: 18px 36px;
    font-size: 17px;
}

.welcome-hint {
    font-size: 14px;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .welcome-title { font-size: 28px; }
    .welcome-subtitle { font-size: 16px; }
    .welcome-steps { flex-direction: column; align-items: center; }
    .welcome-step { width: 100%; max-width: 280px; flex-direction: row; text-align: left; }
}

/* =====================================================
   Dashboard/Home View
   ===================================================== */
.home-page {
    max-width: 900px;
    padding: 32px 40px;
}

.home-header {
    margin-bottom: 32px;
}

.home-greeting {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.home-quote {
    font-size: 17px;
    color: var(--text-secondary);
    margin: 8px 0 4px;
    font-weight: 500;
}

.home-date {
    font-size: 14px;
    color: var(--text-muted);
}

/* Stats Row */
.home-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-icon.voice { background: linear-gradient(135deg, #dbeafe, #eff6ff); }
.stat-icon.posts { background: linear-gradient(135deg, #dcfce7, #f0fdf4); }
.stat-icon.remaining { background: linear-gradient(135deg, #fef3c7, #fffbeb); }

.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Gamification Row */
.gamification-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.gamification-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    overflow: hidden;
    min-height: 100px;
}

.gamification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.gamification-card.learning-card::before {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.gamification-card.streak-card::before {
    background: linear-gradient(90deg, #f97316, #fb923c);
}

.gamification-icon {
    font-size: 28px;
    flex-shrink: 0;
    margin-top: 4px;
}

.gamification-content {
    flex: 1;
    min-width: 0;
}

.gamification-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.gamification-label {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.gamification-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
    display: block;
}

/* Streak card special states */
.streak-card.on-fire .gamification-icon {
    animation: fireFlicker 0.5s ease-in-out infinite alternate;
}

@keyframes fireFlicker {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.streak-card.new-streak .gamification-value {
    animation: streakPop 0.4s ease;
}

@keyframes streakPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Learning card animation when increased */
.learning-card.learning-up .gamification-icon {
    animation: brainGlow 0.6s ease;
}

@keyframes brainGlow {
    0%, 100% { filter: drop-shadow(0 0 0 transparent); }
    50% { filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6)); }
}

@media (max-width: 600px) {
    .gamification-row {
        grid-template-columns: 1fr;
    }
}

/* Quick Actions */
.home-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.quick-action-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

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

.quick-action-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.quick-action-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.quick-action-text h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.quick-action-text p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.quick-action-arrow {
    font-size: 20px;
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.2s ease;
}

.quick-action-card:hover .quick-action-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Profile Summary Card */
.profile-summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
}

.profile-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.profile-summary-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.profile-summary-content {
    display: flex;
    gap: 20px;
}

.profile-summary-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-summary-photo-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.profile-summary-info {
    flex: 1;
    min-width: 0;
}

.profile-summary-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-summary-headline {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.profile-summary-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trait-tag {
    padding: 6px 12px;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.trait-tag.primary {
    background: var(--primary-light);
    border-color: transparent;
    color: var(--primary);
}

/* Recent Generations */
.recent-posts-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.recent-posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.recent-posts-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-post-card {
    padding: 16px;
    background: var(--bg-page);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.recent-post-card:hover {
    background: var(--bg-hover);
}

.recent-post-topic {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.recent-post-preview {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

.recent-posts-empty {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
}

/* Home page responsive */
@media (max-width: 768px) {
    .home-page { padding: 24px 16px; }
    .home-stats { grid-template-columns: 1fr; }
    .home-quick-actions { grid-template-columns: 1fr; }
    .profile-summary-content { flex-direction: column; }
    .home-greeting { font-size: 24px; }
}

/* =====================================================
   LinkedIn Post Preview Card
   ===================================================== */
.linkedin-preview-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.linkedin-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid var(--border);
}

.preview-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 10px;
    border-radius: 20px;
}

.preview-hint {
    font-size: 12px;
    color: var(--text-muted);
}

.linkedin-post {
    padding: 16px;
    background: #ffffff;
}

.linkedin-post-header {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.linkedin-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.linkedin-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a66c2, #0073b1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.linkedin-post-meta {
    flex: 1;
    min-width: 0;
}

.linkedin-author-name {
    font-size: 14px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.9);
    line-height: 1.3;
}

.linkedin-author-headline {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.3;
    margin-top: 1px;
}

.linkedin-post-time {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.6);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.linkedin-globe {
    font-size: 10px;
}

.linkedin-post-content {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.9);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.linkedin-post-engagement {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    margin-top: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.linkedin-reactions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.linkedin-reaction-icons {
    font-size: 14px;
    display: flex;
}

.linkedin-reaction-count {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.6);
}

.linkedin-post-actions {
    display: flex;
    justify-content: space-around;
    padding: 4px 0;
}

.linkedin-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6);
    cursor: default;
    border-radius: 4px;
}

.linkedin-action-btn span {
    font-size: 16px;
}

/* Post Actions Bar */
.post-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-page);
    border-top: 1px solid var(--border);
    gap: 16px;
    flex-wrap: wrap;
}

.post-actions-bar .feedback-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-actions-bar .feedback-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.post-actions-bar .action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Copy Button with Animation */
.btn-copy {
    position: relative;
    overflow: hidden;
    min-width: 160px;
    transition: all 0.3s ease;
}

.btn-copy .copy-icon,
.btn-copy .copy-text {
    transition: all 0.3s ease;
}

.btn-copy .copy-success {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-copy.copied {
    background: var(--success);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
    transform: scale(1.02);
}

.btn-copy.copied .copy-icon,
.btn-copy.copied .copy-text {
    opacity: 0;
    transform: translateY(-10px);
}

.btn-copy.copied .copy-success {
    opacity: 1;
    transform: translateX(-50%);
    animation: successPop 0.4s ease;
}

@keyframes successPop {
    0% { transform: translateX(-50%) scale(0.8); }
    50% { transform: translateX(-50%) scale(1.1); }
    100% { transform: translateX(-50%) scale(1); }
}

/* Feedback button active states */
.post-actions-bar .feedback-btn.active[data-feedback="up"] {
    background: var(--success-light);
    color: var(--success);
}

.post-actions-bar .feedback-btn.active[data-feedback="down"] {
    background: var(--warning-light);
    color: var(--warning);
}

/* Responsive */
@media (max-width: 600px) {
    .post-actions-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .post-actions-bar .feedback-buttons,
    .post-actions-bar .action-buttons {
        justify-content: center;
    }
    .linkedin-post-actions {
        flex-wrap: wrap;
    }
    .linkedin-action-btn {
        flex: 1;
        min-width: 70px;
        justify-content: center;
    }
}

/* =====================================================
   "Getting Sharper" Celebration
   ===================================================== */
.sharper-celebration {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.sharper-celebration.show {
    opacity: 1;
    visibility: visible;
}

.sharper-content {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px 48px;
    text-align: center;
    position: relative;
    transform: scale(0.8) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 360px;
}

.sharper-celebration.show .sharper-content {
    transform: scale(1) translateY(0);
}

.sharper-icon {
    font-size: 64px;
    margin-bottom: 8px;
    animation: brainPulse 1s ease-in-out infinite;
}

@keyframes brainPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.sharper-sparkles {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 60px;
    pointer-events: none;
}

.sharper-sparkles .sparkle {
    position: absolute;
    font-size: 20px;
    opacity: 0;
    animation: sparkleFloat 1.5s ease-out infinite;
}

.sharper-sparkles .sparkle:nth-child(1) {
    left: 0;
    animation-delay: 0s;
}

.sharper-sparkles .sparkle:nth-child(2) {
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.3s;
}

.sharper-sparkles .sparkle:nth-child(3) {
    right: 0;
    animation-delay: 0.6s;
}

@keyframes sparkleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) scale(0.5);
    }
}

.sharper-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sharper-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.sharper-subtext {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* Progress indicator for sharper - optional future enhancement */
.sharper-progress {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.sharper-progress-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.sharper-progress-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

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

/* =====================================================
   Strategy Onboarding Styles
   ===================================================== */

.strategy-onboarding {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
}

.strategy-content {
    max-width: 640px;
    margin: 0 auto;
    padding: 40px 20px;
}

.strategy-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.strategy-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.strategy-step-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.strategy-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.strategy-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.strategy-hint {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 24px;
    margin-bottom: 24px;
}

.strategy-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
}

/* Voice Style Selection */
.voice-options-section {
    text-align: left;
    margin-bottom: 24px;
}

.voice-style-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.voice-style-option input {
    display: none;
}

.voice-style-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.voice-style-option input:checked + .voice-style-card {
    border-color: var(--primary);
    background: var(--primary-light);
}

.voice-style-card:hover {
    border-color: var(--primary);
}

.voice-style-emoji {
    font-size: 24px;
}

.voice-style-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Length Preference Selection */
.length-options {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 12px;
}

.length-option input {
    display: none;
}

.length-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 32px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    min-width: 120px;
}

.length-option input:checked + .length-card {
    border-color: var(--primary);
    background: var(--primary-light);
}

.length-card:hover {
    border-color: var(--primary);
}

.length-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.length-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Goal Selection */
.goal-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.goal-option input {
    display: none;
}

.goal-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.goal-option input:checked + .goal-card {
    border-color: var(--primary);
    background: var(--primary-light);
}

.goal-card:hover {
    border-color: var(--primary);
}

.goal-emoji {
    font-size: 28px;
}

.goal-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Content Type Selection */
.content-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    text-align: left;
}

.content-type-option input {
    display: none;
}

.content-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    min-height: 100px;
}

.content-type-option input:checked + .content-type-card {
    border-color: var(--primary);
    background: var(--primary-light);
}

.content-type-card:hover {
    border-color: var(--primary);
}

.content-type-emoji {
    font-size: 28px;
    margin-bottom: 8px;
}

.content-type-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Strategy Generating Animation */
.strategy-generating {
    text-align: center;
    padding: 80px 40px;
}

.strategy-generating-logo {
    margin-bottom: 32px;
}

.strategy-generating-logo .logo-icon-lg {
    width: 80px;
    height: 80px;
}

.strategy-generating-logo .logo-icon-lg.pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

.strategy-generating-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.strategy-progress-bar {
    max-width: 400px;
    margin: 0 auto 24px;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.strategy-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), #8b5cf6);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.strategy-generating-message {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.strategy-preview-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.strategy-preview-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: left;
}

.strategy-preview-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.strategy-preview-text strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.strategy-preview-text span {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Strategy Complete */
.strategy-complete {
    text-align: center;
    padding: 80px 40px;
}

.strategy-complete-icon {
    font-size: 72px;
    margin-bottom: 24px;
    animation: celebrateBounce 0.6s ease-out;
}

@keyframes celebrateBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.strategy-complete-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.strategy-complete-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.strategy-complete-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* =====================================================
   Strategy Page Styles
   ===================================================== */

.strategy-page {
    max-width: 900px;
}

.strategy-header-actions {
    display: flex;
    gap: 12px;
}

.strategy-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--bg-hover);
    padding: 4px;
    border-radius: var(--radius);
    width: fit-content;
}

.strategy-tab {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.strategy-tab:hover {
    color: var(--text-primary);
}

.strategy-tab.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.strategy-tab-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
}

/* Strategy Overview Tab */
.strategy-overview-grid {
    display: grid;
    gap: 24px;
}

.strategy-overview-item {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.strategy-overview-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.strategy-overview-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.strategy-overview-value {
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.6;
}

.strategy-voice-summary {
    background: var(--primary-light);
    padding: 20px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

/* Content Pillars Tab */
.pillars-grid {
    display: grid;
    gap: 16px;
}

.pillar-card {
    padding: 24px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    border-left-width: 4px;
    transition: all var(--transition);
}

.pillar-card:hover {
    box-shadow: var(--shadow-md);
}

.pillar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.pillar-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.pillar-stats {
    font-size: 13px;
    color: var(--text-muted);
}

.pillar-description {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.pillar-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pillar-topic-tag {
    font-size: 13px;
    padding: 6px 12px;
    background: var(--bg-hover);
    border-radius: 20px;
    color: var(--text-secondary);
}

/* Voice Analysis Tab */
.voice-analysis-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.voice-analysis-section {
    padding: 20px;
    background: var(--bg-hover);
    border-radius: var(--radius);
}

.voice-analysis-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.voice-analysis-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.voice-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.voice-tag {
    font-size: 13px;
    padding: 4px 12px;
    background: var(--bg-card);
    border-radius: 20px;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

/* Detailed Voice Profile Styles */
.voice-profile-detailed {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.voice-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.voice-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.voice-section-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.voice-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.voice-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.voice-detail-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.voice-detail-value {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
}

.voice-detail-block {
    margin-top: 16px;
}

.voice-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.phrase-tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 13px;
    font-style: italic;
}

.hook-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 20px;
    font-size: 13px;
}

.avoid-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: line-through;
}

.hook-examples {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.hook-example {
    font-style: italic;
    color: var(--text-secondary);
    margin: 8px 0;
    padding-left: 16px;
    border-left: 3px solid var(--primary-light);
}

.voice-pillars-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.voice-pillar-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    background: var(--bg-hover);
    border-radius: var(--radius);
}

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

.voice-pillar-desc {
    font-size: 14px;
    color: var(--text-muted);
}

/* =====================================================
   Strategy Prompt Modal
   ===================================================== */

.strategy-prompt-modal {
    max-width: 480px;
    text-align: center;
    padding: 40px;
}

.strategy-prompt-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.strategy-prompt-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.strategy-prompt-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.strategy-prompt-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
}

.strategy-prompt-actions {
    display: flex;
    gap: 12px;
    width: 100%;
}

.strategy-prompt-actions .btn {
    flex: 1;
}

/* =====================================================
   Pillar Selection in Generate Page
   ===================================================== */

.pillar-select-wrapper {
    margin-bottom: 20px;
}

.pillar-select-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}

.pillar-select {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pillar-select-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 2px solid var(--border);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg-card);
}

.pillar-select-option:hover {
    border-color: var(--text-muted);
}

.pillar-select-option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.pillar-select-option .pillar-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.pillar-suggestion {
    margin-top: 12px;
    padding: 12px 16px;
    background: var(--warning-light);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--warning);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =====================================================
   Strategy Summary Card on Home
   ===================================================== */

.strategy-summary-card {
    background: linear-gradient(135deg, var(--primary-light) 0%, #ede9fe 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.strategy-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.strategy-summary-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.strategy-goal-badge {
    font-size: 13px;
    padding: 4px 12px;
    background: var(--bg-card);
    border-radius: 20px;
    color: var(--text-secondary);
}

.strategy-pillars-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.strategy-pillar-mini {
    flex: 1;
    padding: 12px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border-left: 3px solid;
}

.strategy-pillar-mini-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.strategy-pillar-mini-count {
    font-size: 12px;
    color: var(--text-muted);
}

.strategy-suggestion {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
}

.strategy-suggestion-icon {
    font-size: 20px;
}

.strategy-suggestion-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-secondary);
}

.strategy-suggestion-text strong {
    color: var(--text-primary);
}

/* =====================================================
   Responsive Adjustments for Strategy
   ===================================================== */

@media (max-width: 768px) {
    .strategy-card {
        padding: 32px 24px;
    }

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

    .voice-style-grid {
        grid-template-columns: 1fr;
    }

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

    .length-card {
        width: 100%;
    }

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

    .strategy-complete-actions {
        flex-direction: column;
    }

    .strategy-tabs {
        width: 100%;
        overflow-x: auto;
    }

    .voice-analysis-grid {
        grid-template-columns: 1fr;
    }

    .strategy-prompt-modal {
        padding: 24px;
    }

    .strategy-prompt-actions {
        flex-direction: column;
    }

    .strategy-pillars-row {
        flex-direction: column;
    }
}
