.cr-container { background: #f8fafc; padding: 20px; border-radius: 12px; }
.cr-input-card { background: #fff; padding: 20px; border-radius: 12px; border: 1px solid #e2e8f0; display: flex; align-items: flex-end; gap: 15px; flex-wrap: wrap; }
.cr-input-group { flex: 1; min-width: 200px; }
.cr-label { font-weight: 600; color: #475569; margin-bottom: 5px; display: block; font-size: 0.9rem; }
.cr-input { width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 1rem; }
    .d-md-block {
        display: block !important;
        margin-bottom: 15px;
    }
.cr-btn { background: #10b981; color: #fff; border: none; padding: 10px 24px; margin-bottom: 20px; border-radius: 8px; font-weight: 600; cursor: pointer; height: 42px; }
.cr-btn:hover { opacity: 0.9; }
.cr-btn:disabled { background: #cbd5e1; cursor: not-allowed; }

/* Saved Section */
.cr-saved-toggle { text-align: right; margin-bottom: 15px; }
.cr-saved-btn { background: white; border: 1px solid #e2e8f0; color: #64748b; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 0.9rem; }
.cr-saved-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; margin-bottom: 20px; }
.cr-saved-item { background: #fff; padding: 15px; border-radius: 8px; border: 1px solid #e2e8f0; cursor: pointer; transition: all 0.2s; position: relative; }
.cr-saved-item:hover { border-color: #10b981; background: #ecfdf5; }
.cr-saved-title { font-weight: bold; color: #1e293b; font-size: 0.95rem; }
.cr-saved-date { font-size: 0.8rem; color: #94a3b8; margin-top: 4px; }
.cr-saved-delete { position: absolute; top: 10px; right: 10px; color: #ef4444; background: none; border: none; font-size: 1.2rem; cursor: pointer; opacity: 0; transition: opacity 0.2s; }
.cr-saved-item:hover .cr-saved-delete { opacity: 1; }

/* Timeline */
.cr-timeline { position: relative; padding-left: 30px; margin-top: 30px; }
.cr-timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #e2e8f0; border-radius: 2px; }
.cr-step { position: relative; margin-bottom: 40px; }
.cr-step-marker { position: absolute; left: -43px; top: 0; width: 30px; height: 30px; background: #10b981; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; border: 4px solid #f0fdf4; }
.cr-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.cr-step-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.cr-step-title { font-size: 1.2rem; font-weight: 800; color: #1e293b; }
.cr-duration { background: #ecfdf5; color: #047857; padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.cr-desc { color: #64748b; line-height: 1.6; margin-bottom: 15px; font-size: 0.95rem; }

/* Skills */
.cr-skills-section { margin-bottom: 15px; }
.cr-skill-category { display: flex; gap: 10px; margin-bottom: 8px; align-items: baseline; }
.cr-skill-label { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; width: 90px; flex-shrink: 0; }
.cr-skill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.cr-badge { padding: 3px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: 500; }
.cr-must { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.cr-pref { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.cr-comp { background: #faf5ff; color: #7e22ce; border: 1px solid #e9d5ff; }

.cr-resources { background: #f8fafc; padding: 12px; border-radius: 8px; font-size: 0.9rem; color: #475569; }
.cr-res-tag { display: inline-block; background: #e2e8f0; padding: 2px 8px; border-radius: 4px; margin-right: 5px; font-size: 0.8rem; }

/* Save Action */
.cr-save-actions { text-align: right; margin-top: 20px; }
.cr-btn-save { background: #1e293b; color: #fff; border: none; padding: 10px 20px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.cr-btn-save:hover { background: #334155; }

/* Rate Limit Modal */
.ai-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); z-index: 9999; display: none;
    align-items: center; justify-content: center; backdrop-filter: blur(4px);
}
.ai-modal-card {
    background: #fff; width: 90%; max-width: 450px; border-radius: 16px;
    padding: 30px; text-align: center; position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.ai-modal-icon {
    width: 60px; height: 60px; background: #fee2e2; color: #ef4444;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin: 0 auto 20px;
}
.ai-modal-title { font-size: 1.25rem; font-weight: 800; color: #1e293b; margin-bottom: 10px; }
.ai-modal-body { color: #64748b; font-size: 0.95rem; line-height: 1.5; margin-bottom: 25px; }

.btn-modal-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white !important; width: 100%; padding: 12px; border-radius: 8px;
    font-weight: 700; display: block; text-decoration: none;
}
.btn-modal-primary:hover { opacity: 0.9; color: #fafafa!important; }

.ai-modal-close {
    position: absolute; top: 15px; right: 15px; background: transparent;
    border: none; color: #94a3b8; font-size: 20px; cursor: pointer;
}
.ai-modal-close:hover { color: #ef4444; }