.modal-wizard {
    max-width: 760px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-wizard .modal-body {
    overflow-y: auto;
    flex: 1;
}

.wizard-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.wizard-type-card {
    padding: 24px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    position: relative;
}

.wizard-type-card:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.wizard-type-card.selected {
    border-color: #667eea;
    background: #f0f3ff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.wizard-type-card.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 12px;
    width: 22px;
    height: 22px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    font-weight: bold;
}

.wizard-type-card .type-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.wizard-type-card .type-name {
    font-weight: 600;
    margin-bottom: 4px;
    color: #1a1a2e;
    font-size: 1em;
}

.wizard-type-card .type-desc {
    font-size: 0.82em;
    color: #6b7280;
    line-height: 1.4;
}

.wizard-panel {
    margin-bottom: 20px;
}

.wizard-collapsible {
    margin: 14px 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.wizard-collapsible-header {
    padding: 13px 16px;
    background: #fafbfc;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.9em;
    color: #374151;
    transition: background 0.15s;
}

.wizard-collapsible-header:hover {
    background: #f3f4f6;
}

.wizard-collapsible-content {
    padding: 18px;
    border-top: 1px solid #e5e7eb;
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
}

.config-grid .form-group {
    margin-bottom: 0;
}

.config-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
}

.config-checkboxes label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.88em;
    color: #374151;
}

.input-with-btn {
    display: flex;
    gap: 8px;
}

.input-with-btn textarea,
.input-with-btn input {
    flex: 1;
}

.btn-icon {
    padding: 8px 12px;
    font-size: 1.1em;
    border-radius: 8px;
}

.btn-full {
    width: 100%;
}

.wizard-ai-section {
    margin: 16px 0;
}

.ai-summary-container {
    margin-top: 12px;
    padding: 16px;
    background: #f0f3ff;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 10px;
}

.summary-text {
    font-size: 0.9em;
    line-height: 1.6;
    color: #1a1a2e;
    white-space: pre-wrap;
}

.wizard-preview-section {
    margin: 20px 0;
    padding: 16px;
    background: #f8f9fc;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
}

.preview-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #667eea;
    font-size: 0.82em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.preview-content {
    font-size: 0.9em;
    line-height: 1.5;
    color: #4a5568;
}

.wizard-url-container {
    margin: 16px 0;
    padding: 16px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
}

.success-message {
    color: #059669;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95em;
}

.url-row {
    display: flex;
    gap: 8px;
}

.url-row input {
    flex: 1;
    font-family: 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82em;
}

.hint {
    color: #9ca3af;
    font-size: 0.82em;
}

.required {
    color: #dc2626;
}

.input-feedback {
    margin-top: 5px;
    font-size: 0.82em;
    padding: 6px 10px;
    border-radius: 6px;
}

.input-feedback.success {
    background: #ecfdf5;
    color: #059669;
}

.input-feedback.error {
    background: #fef2f2;
    color: #dc2626;
}

/* ==================== Topic Ideas ==================== */
.topic-ideas-grid {
    max-height: 60vh;
    overflow-y: auto;
}

.topic-category {
    margin-bottom: 20px;
}

.topic-category h4 {
    color: #667eea;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
    padding-bottom: 6px;
    margin-bottom: 10px;
    font-size: 0.95em;
}

.topic-item {
    padding: 10px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.9em;
}

.topic-item:hover {
    background: #f0f3ff;
    border-color: #667eea;
}

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

.loading-spinner {
