/* =============================================
   NARAVIO - UI Enhancements & Fixes
   ============================================= */

/* =============================================
   TOOLTIPS
   ============================================= */
.tooltip-trigger {
    position: relative;
    cursor: help;
}

.tooltip-trigger .tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    margin-left: 6px;
    transition: all 0.2s;
}

.tooltip-trigger:hover .tooltip-icon {
    background: #3b82f6;
    color: #fff;
}

.tooltip-trigger .tooltip-content {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #1e293b;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    width: max-content;
    max-width: 260px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.tooltip-trigger .tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1e293b;
}

.tooltip-trigger:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* =============================================
   ENHANCED ONBOARDING PROGRESS STEPPER
   ============================================= */
.onboarding-progress {
    position: relative;
    padding: 0 20px;
}

.progress-step {
    position: relative;
    z-index: 2;
}

.progress-step-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #94a3b8;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.progress-step.active .progress-step-icon {
    border-color: #3b82f6;
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transform: scale(1.05);
}

.progress-step.completed .progress-step-icon {
    border-color: #10b981;
    background: #10b981;
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.progress-line {
    width: 80px;
    height: 3px;
    background: #e2e8f0;
    margin: 0 8px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.progress-line.completed {
    background: #10b981;
}

.progress-line.completed::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-step-label {
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
    transition: color 0.3s;
}

/* =============================================
   ENHANCED IMPORT CARD
   ============================================= */
.import-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    max-width: 480px;
    margin: 0 auto;
}

.import-card .form-input-lg {
    font-size: 16px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    transition: all 0.2s;
}

.import-card .form-input-lg:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.import-card .form-hint {
    font-size: 13px;
    color: #64748b;
    margin-top: 8px;
}

.import-card .btn-primary {
    margin-top: 20px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
}

/* =============================================
   ENHANCED POST SELECTION CARDS
   ============================================= */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.post-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.post-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.post-card.selected {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.post-card.selected::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: #3b82f6;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.post-card-content {
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
    max-height: 120px;
    overflow: hidden;
    margin-bottom: 12px;
}

.post-card-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
}

.post-card-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* =============================================
   ENHANCED BUTTONS
   ============================================= */
.btn {
    transition: all 0.2s ease;
}

.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

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

.btn-secondary:hover {
    background: #f1f5f9;
}

.btn-ghost:hover {
    background: #f1f5f9;
}

/* Button loading state */
.btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    display: inline-block;
    vertical-align: middle;
}

/* =============================================
   ENHANCED EMPTY STATES
   ============================================= */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.empty-state p {
    color: #64748b;
    font-size: 14px;
    max-width: 300px;
    margin: 0 auto 20px;
}

/* =============================================
   ENHANCED LOADING STATES
   ============================================= */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 6px;
}

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

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-text.short { width: 60%; }
.skeleton-text.medium { width: 80%; }
.skeleton-text.long { width: 100%; }

.skeleton-circle {
    border-radius: 50%;
}

/* =============================================
   ENHANCED FORM ELEMENTS
   ============================================= */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* =============================================
   SLIDER ENHANCEMENTS WITH TOOLTIPS
   ============================================= */
.slider-item {
    position: relative;
}

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

.slider-label {
    font-weight: 500;
    color: #334155;
    display: flex;
    align-items: center;
}

.slider-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    margin-left: 6px;
    cursor: help;
    transition: all 0.2s;
}

.slider-help:hover {
    background: #3b82f6;
    color: #fff;
}

.slider-input {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    transition: all 0.2s;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
    transition: all 0.2s;
}

.slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 6px;
}

/* =============================================
   CARD ENHANCEMENTS
   ============================================= */
.card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 20px;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

/* =============================================
   NAVIGATION ENHANCEMENTS
   ============================================= */
.nav-item {
    position: relative;
    transition: all 0.2s;
}

.nav-item:hover {
    background: #f1f5f9;
}

.nav-item.active {
    background: #eff6ff;
    color: #3b82f6;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: #3b82f6;
    border-radius: 0 2px 2px 0;
}

/* Feature badge for nav items */
.nav-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: auto;
}

.nav-badge.new {
    background: #dcfce7;
    color: #166534;
}

.nav-badge.pro {
    background: #fef3c7;
    color: #92400e;
}

/* =============================================
   ORIGINAL SETTINGS PAGE STYLES
   ============================================= */

/* Settings Page */
.settings-section {
    margin-bottom: 2rem;
}

.settings-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.settings-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.setting-row:last-child {
    border-bottom: none;
}

.setting-row span:first-child {
    color: #64748b;
    font-weight: 500;
}

.setting-row span:last-child {
    color: #1e293b;
    font-weight: 500;
}

.plan-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.plan-badge.plan-starter {
    background: #f1f5f9;
    color: #64748b;
}

.plan-badge.plan-pro {
    background: #dbeafe;
    color: #2563eb;
}

.plan-badge.plan-growth {
    background: #fef3c7;
    color: #d97706;
}

.settings-card .btn {
    margin: 1rem 1.25rem 1.25rem;
    width: calc(100% - 2.5rem);
}

/* Upgrade Modal */
.upgrade-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.upgrade-option {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s ease;
}

.upgrade-option:hover {
    border-color: #cbd5e1;
}

.upgrade-option.featured {
    background: linear-gradient(135deg, #eff6ff 0%, #fef3c7 100%);
    border-color: #3b82f6;
}

.upgrade-option h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.upgrade-option p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* View Header */
.view-header {
    margin-bottom: 1.5rem;
}

.view-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

/* Sidebar Credits Widget Fix */
.credits-widget {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

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

.credits-label {
    font-weight: 600;
    color: #1e293b;
}

.credits-value {
    font-weight: 700;
    color: #3b82f6;
}

.credits-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.credits-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.credits-hint {
    font-size: 0.75rem;
    color: #94a3b8;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

/* Modal Base */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-lg {
    max-width: 640px;
}

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

.modal-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

/* Edit Modal Textarea */
.edit-textarea {
    width: 100%;
    min-height: 300px;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9375rem;
    line-height: 1.6;
    resize: vertical;
}

.edit-textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e293b;
    color: #fff;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-success {
    background: #059669;
}

.toast-error {
    background: #dc2626;
}

.toast-info {
    background: #3b82f6;
}

/* Loading States */
.loading-state,
.generating-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.spinner-lg {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.spinner-sm {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-right: 0.5rem;
}

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

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #64748b;
}

.empty-state h3 {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.empty-state .btn {
    margin-top: 1rem;
}

/* Upgrade Required Block */
.upgrade-required {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 400px;
    margin: 0 auto;
}

.upgrade-required .upgrade-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upgrade-required h2 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.upgrade-required p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

/* Analyze Error State */
.analyze-error {
    text-align: center;
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.analyze-error .onboarding-title {
    margin-bottom: 0.5rem;
}

.analyze-error .onboarding-subtitle {
    margin-bottom: 1rem;
}

.error-reasons {
    text-align: left;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    list-style: none;
}

.error-reasons li {
    padding: 0.5rem 0;
    color: #991b1b;
    font-size: 0.9375rem;
}

.error-reasons li::before {
    content: "•";
    margin-right: 0.75rem;
    color: #dc2626;
}

.error-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.error-actions .btn {
    width: 100%;
}

/* Clickable Stepper */
.progress-step.completed {
    cursor: pointer;
    transition: transform 0.2s ease;
}

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

.progress-step.completed:hover .progress-step-icon {
    background: #1d4ed8;
}

/* Voice Profile View */
.voice-profile-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
}

.voice-item {
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.voice-item h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.voice-item p {
    color: #1e293b;
    line-height: 1.6;
    margin: 0;
}

.voice-item .text-muted {
    color: #64748b;
    font-size: 0.9375rem;
    margin-top: 0.5rem;
}

.phrase-list, .theme-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.phrase-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-style: italic;
}

.theme-tag {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

.pillars-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pillar-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.pillar-name {
    font-weight: 600;
    color: #1e293b;
    display: block;
}

.pillar-desc {
    font-size: 0.875rem;
    color: #64748b;
    display: block;
    margin-top: 0.25rem;
}

/* Profile Optimizer - Profile Preview */
.profile-preview-content {
    text-align: center;
    padding: 1.5rem;
}

.profile-photo-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #e2e8f0;
}

.profile-photo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.profile-preview-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.profile-headline {
    color: #64748b;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.profile-about {
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.profile-location {
    color: #94a3b8;
    font-size: 0.8125rem;
}

/* Score History */
.score-history-card {
    padding: 1rem;
}

.score-history-card .card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.score-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.score-history-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 8px;
}

.score-mini {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-meta {
    display: flex;
    flex-direction: column;
}

.score-date {
    font-size: 0.8125rem;
    color: #1e293b;
    font-weight: 500;
}

.score-objective {
    font-size: 0.75rem;
    color: #64748b;
}

/* Profile Optimizer Score Results */
.score-results-content {
    padding: 1.5rem;
}

.score-main {
    text-align: center;
    margin-bottom: 1.5rem;
}

.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.score-grade {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

.section-scores {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
}

.section-score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
}

.section-name {
    font-weight: 500;
    color: #64748b;
    text-transform: capitalize;
}

.section-value {
    font-weight: 700;
    color: #1e293b;
}

.recommendations-section {
    margin-bottom: 1.5rem;
}

.recommendations-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.recommendation-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid #e2e8f0;
}

.recommendation-item.priority-high {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.recommendation-item.priority-medium {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.recommendation-item.priority-low {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.recommendation-item strong {
    display: block;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.recommendation-item p {
    color: #475569;
    font-size: 0.9375rem;
    margin: 0 0 0.5rem;
    line-height: 1.5;
}

.recommendation-item .impact {
    display: block;
    font-size: 0.8125rem;
    color: #64748b;
    font-style: italic;
}

.optimized-headline-section {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.optimized-headline-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.optimized-headline {
    font-size: 1rem;
    color: #1e293b;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

/* Enhanced Profile Optimizer Results */
.score-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.score-summary {
    color: #475569;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-top: 1rem;
    text-align: left;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
}

.section-value.score-good { color: #059669; }
.section-value.score-ok { color: #d97706; }
.section-value.score-low { color: #dc2626; }

.quick-wins-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid #fcd34d;
}

.quick-wins-section h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 0.75rem;
}

.quick-wins-list {
    margin: 0;
    padding-left: 1.25rem;
}

.quick-wins-list li {
    color: #78350f;
    font-size: 0.9375rem;
    padding: 0.375rem 0;
    line-height: 1.5;
}

.recommendations-section h4 {
    font-size: 1.125rem;
}

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

.rec-header strong {
    font-size: 1rem;
    margin-bottom: 0;
}

.rec-time {
    font-size: 0.75rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.rec-current, .rec-action, .rec-impact {
    font-size: 0.9375rem;
    margin: 0.5rem 0;
    line-height: 1.5;
}

.rec-current span, .rec-action span, .rec-impact span {
    font-weight: 600;
    color: #64748b;
}

.rec-current {
    color: #64748b;
    font-style: italic;
}

.rec-example {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 0.75rem 0;
    font-size: 0.9375rem;
}

.rec-example span {
    font-weight: 600;
    color: #166534;
    display: block;
    margin-bottom: 0.25rem;
}

.optimized-section {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.optimized-section h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.optimized-content {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.9375rem;
    color: #1e293b;
    line-height: 1.6;
}

.optimized-content.copyable {
    cursor: pointer;
    transition: all 0.2s;
}

.optimized-content.copyable:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.copy-hint {
    display: block;
    text-align: right;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

.keywords-section {
    margin-top: 1.5rem;
}

.keywords-section h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.keyword-tag {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}
