/**
 * Easy Config Wizard Styles
 * Modern, clean multi-step wizard UI
 */

/* ============================================================================
   Base Wrapper
   ============================================================================ */
.aichat-easy-config-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.aichat-ec-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.aichat-ec-logo {
    font-size: 32px;
}

.aichat-ec-subtitle {
    color: #64748b;
    font-size: 15px;
    margin: 0 0 30px;
}

/* ============================================================================
   Wizard Container
   ============================================================================ */
.aichat-ec-wizard {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* ============================================================================
   Step Indicators
   ============================================================================ */
.aichat-ec-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.aichat-ec-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 140px;
}

.aichat-ec-step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.aichat-ec-step.active .aichat-ec-step-icon {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.1);
}

.aichat-ec-step.done .aichat-ec-step-icon {
    background: rgba(255, 255, 255, 0.9);
}

.aichat-ec-step-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.aichat-ec-step.active .aichat-ec-step-label,
.aichat-ec-step.done .aichat-ec-step-label {
    color: #fff;
}

.aichat-ec-step-line {
    position: absolute;
    top: 25px;
    left: 75%;
    width: 50%;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.aichat-ec-step.done .aichat-ec-step-line {
    background: rgba(255, 255, 255, 0.8);
}

/* ============================================================================
   Panel Content
   ============================================================================ */
.aichat-ec-panel {
    padding: 0;
}

.aichat-ec-step-content {
    padding: 40px;
}

.aichat-ec-header-section {
    text-align: center;
    margin-bottom: 40px;
}

.aichat-ec-header-section h2 {
    font-size: 26px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 10px;
}

.aichat-ec-desc {
    color: #64748b;
    font-size: 15px;
    margin: 0;
}

/* ============================================================================
   Sections
   ============================================================================ */
.aichat-ec-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e2e8f0;
}

.aichat-ec-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.aichat-ec-section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.aichat-ec-section-icon {
    font-size: 22px;
}

.aichat-ec-section-header h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.aichat-ec-help-text {
    font-size: 13px;
    color: #94a3b8;
    margin-left: auto;
}

/* ============================================================================
   Bot Mode Cards
   ============================================================================ */
.aichat-ec-mode-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.aichat-ec-mode-card {
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.aichat-ec-mode-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.aichat-ec-mode-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.aichat-ec-mode-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.aichat-ec-mode-card.disabled:hover {
    border-color: #e2e8f0;
    background: #f1f5f9;
}

.aichat-ec-mode-card.disabled .aichat-ec-mode-desc {
    color: #ef4444;
    font-weight: 500;
}

.aichat-ec-mode-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.aichat-ec-mode-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.aichat-ec-mode-desc {
    font-size: 13px;
    color: #64748b;
}

.aichat-ec-bot-select {
    margin-top: 16px;
}

.aichat-ec-bot-select label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 6px;
}

.aichat-ec-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}

/* ============================================================================
   Chatbot Type Grid
   ============================================================================ */
.aichat-ec-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .aichat-ec-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.aichat-ec-type-card {
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

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

.aichat-ec-type-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
}

.aichat-ec-type-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.aichat-ec-type-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    font-size: 14px;
}

.aichat-ec-type-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

/* ============================================================================
   Voice Tone Options
   ============================================================================ */
.aichat-ec-tone-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.aichat-ec-tone-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.aichat-ec-tone-option:hover {
    border-color: #cbd5e1;
}

.aichat-ec-tone-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
}

.aichat-ec-tone-option input {
    display: none;
}

.aichat-ec-tone-icon {
    font-size: 20px;
}

.aichat-ec-tone-name {
    font-weight: 500;
    color: #1e293b;
    font-size: 14px;
}

/* ============================================================================
   Response Length Slider
   ============================================================================ */
.aichat-ec-length-slider {
    max-width: 500px;
}

.aichat-ec-range {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #e2e8f0, #667eea);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.aichat-ec-range::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #667eea;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: grab;
}

.aichat-ec-range::-webkit-slider-thumb:active {
    cursor: grabbing;
}

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

.aichat-ec-length-label {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
    transition: all 0.2s ease;
}

.aichat-ec-length-label.active {
    color: #667eea;
    font-weight: 600;
}

.aichat-ec-length-desc {
    margin-top: 8px;
    font-size: 13px;
    color: #64748b;
    font-style: italic;
}

/* ============================================================================
   Guidelines
   ============================================================================ */
.aichat-ec-guidelines-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.aichat-ec-guideline-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aichat-ec-guideline-bullet {
    color: #667eea;
    font-size: 18px;
    font-weight: bold;
}

.aichat-ec-guideline-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.aichat-ec-guideline-input:focus {
    outline: none;
    border-color: #667eea;
}

.aichat-ec-guideline-delete {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.aichat-ec-guideline-delete:hover {
    background: #fee2e2;
    color: #ef4444;
}

.aichat-ec-add-guideline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ============================================================================
   Web Scan
   ============================================================================ */
.aichat-ec-webscan-loading {
    text-align: center;
    padding: 40px 20px;
}

.aichat-ec-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

.aichat-ec-webscan-results {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.aichat-ec-webscan-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.aichat-ec-webscan-count,
.aichat-ec-webscan-selected {
    font-size: 14px;
    color: #64748b;
}

.aichat-ec-webscan-summary .button {
    margin-left: auto;
}

.aichat-ec-webscan-list {
    max-height: 210px;
    overflow-y: auto;
    padding: 12px;
}

.aichat-ec-webscan-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.aichat-ec-webscan-item:hover {
    background: #f1f5f9;
}

.aichat-ec-webscan-item input {
    flex-shrink: 0;
}

.aichat-ec-item-title {
    flex: 1;
    font-size: 14px;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aichat-ec-item-type {
    font-size: 11px;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.aichat-ec-item-type--product {
    color: #7c3aed;
    background: #ede9fe;
}

/* ============================================================================
   Accordions
   ============================================================================ */
.aichat-ec-accordion {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.aichat-ec-accordion-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px 20px;
    background: #f8fafc;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
}

.aichat-ec-accordion-header:hover {
    background: #f1f5f9;
}

.aichat-ec-accordion-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 15px;
}

.aichat-ec-accordion-desc {
    font-size: 13px;
    color: #64748b;
    margin-left: auto;
}

.aichat-ec-accordion-arrow {
    font-size: 14px;
    color: #94a3b8;
    transition: transform 0.2s ease;
    margin-left: 10px;
}

.aichat-ec-accordion-arrow.open {
    transform: rotate(180deg);
}

.aichat-ec-accordion-content {
    display: none;
    padding: 20px;
    border-top: 1px solid #e2e8f0;
}

.aichat-ec-field-help {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 12px;
}

.aichat-ec-textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.aichat-ec-textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* ============================================================================
   File Upload
   ============================================================================ */
.aichat-ec-upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

.aichat-ec-upload-zone:hover,
.aichat-ec-upload-zone.dragover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.04);
}

.aichat-ec-upload-icon {
    font-size: 40px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.aichat-ec-upload-zone p {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 14px;
}

.aichat-ec-upload-link {
    color: #667eea;
    cursor: pointer;
    font-weight: 500;
}

.aichat-ec-upload-link:hover {
    text-decoration: underline;
}

.aichat-ec-upload-hint {
    font-size: 12px !important;
    color: #94a3b8 !important;
}

.aichat-ec-uploaded-files {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aichat-ec-uploaded-file {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 8px;
}

.aichat-ec-uploaded-file i {
    font-size: 18px;
    color: #667eea;
}

.aichat-ec-file-name {
    flex: 1;
    font-size: 14px;
    color: #1e293b;
}

.aichat-ec-file-status {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
}

.aichat-ec-file-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.aichat-ec-file-status.success {
    background: #d1fae5;
    color: #065f46;
}

.aichat-ec-file-remove {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

.aichat-ec-file-remove:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* ============================================================================
   Provider Selection
   ============================================================================ */
.aichat-ec-provider-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .aichat-ec-provider-grid {
        grid-template-columns: 1fr;
    }
}

.aichat-ec-provider-card {
    padding: 24px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

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

.aichat-ec-provider-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
}

.aichat-ec-provider-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.aichat-ec-provider-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    font-size: 15px;
}

.aichat-ec-provider-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 10px;
}

.aichat-ec-provider-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #059669;
    font-weight: 500;
}

.aichat-ec-provider-status i {
    font-size: 14px;
}

/* ============================================================================
   API Key Section
   ============================================================================ */
.aichat-ec-api-configured {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: #d1fae5;
    border-radius: 12px;
    margin-bottom: 12px;
}

.aichat-ec-api-configured i {
    font-size: 28px;
    color: #059669;
}

.aichat-ec-api-configured strong {
    display: block;
    color: #065f46;
    margin-bottom: 4px;
}

.aichat-ec-api-configured p {
    margin: 0;
    font-size: 14px;
    color: #047857;
}

.aichat-ec-api-change {
    margin-bottom: 16px;
}

.aichat-ec-api-change a {
    font-size: 14px;
    color: #667eea;
}

.aichat-ec-api-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #eff6ff;
    border-radius: 8px;
    margin-bottom: 16px;
}

.aichat-ec-api-notice i {
    font-size: 18px;
    color: #3b82f6;
}

.aichat-ec-api-notice span {
    font-size: 14px;
    color: #1e40af;
}

.aichat-ec-api-notice a {
    color: #2563eb;
    font-weight: 500;
}

.aichat-ec-api-field {
    display: flex;
    gap: 12px;
}

.aichat-ec-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.aichat-ec-input:focus {
    outline: none;
    border-color: #667eea;
}

/* ============================================================================
   Progress / Indexing
   ============================================================================ */
.aichat-ec-center {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.aichat-ec-indexing-container {
    text-align: center;
    max-width: 480px;
}

.aichat-ec-indexing-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

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

.aichat-ec-progress-container {
    margin-top: 30px;
}

.aichat-ec-progress-bar {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.aichat-ec-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 6px;
    transition: width 0.4s ease;
}

.aichat-ec-progress-text {
    font-size: 14px;
    color: #64748b;
}

/* ============================================================================
   Finish Screen
   ============================================================================ */
.aichat-ec-finish-container {
    text-align: center;
    max-width: 520px;
}

.aichat-ec-finish-icon {
    font-size: 72px;
    margin-bottom: 20px;
}

.aichat-ec-finish-summary {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    margin: 30px 0;
    text-align: left;
}

.aichat-ec-summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.aichat-ec-summary-item:last-child {
    border-bottom: none;
}

.aichat-ec-summary-item i {
    font-size: 20px;
    color: #10b981;
}

.aichat-ec-summary-item span {
    font-size: 14px;
    color: #1e293b;
}

.aichat-ec-next-steps {
    margin-bottom: 30px;
}

.aichat-ec-next-steps h3 {
    font-size: 18px;
    color: #1e293b;
    margin: 0 0 8px;
}

.aichat-ec-next-steps p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.aichat-ec-finish-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.aichat-ec-finish-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================================
   Navigation
   ============================================================================ */
.aichat-ec-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.aichat-ec-nav .button-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px !important;
    font-size: 15px !important;
}

.aichat-ec-nav .button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
}

.aichat-ec-nav .button-primary:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
}

.aichat-ec-nav .button-primary:disabled {
    background: #cbd5e1;
    box-shadow: none;
    cursor: not-allowed;
}

/* ============================================================================
   AI Vision Option (PDF fallback)
   ============================================================================ */
.aichat-ec-ai-vision-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 16px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
}

.aichat-ec-ai-vision-option:hover {
    background: #f1f5f9;
}

.aichat-ec-ai-vision-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #6366f1;
}

.aichat-ec-tooltip {
    color: #94a3b8;
    cursor: help;
}

.aichat-ec-tooltip:hover {
    color: #6366f1;
}

/* ============================================================================
   Free API Key Tip
   ============================================================================ */
.aichat-ec-free-tip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-top: 16px;
    background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 100%);
    border: 1px solid #fbbf24;
    border-radius: 10px;
    font-size: 13px;
    color: #92400e;
    line-height: 1.5;
}

.aichat-ec-free-tip i {
    font-size: 20px;
    color: #f59e0b;
    flex-shrink: 0;
}

.aichat-ec-free-tip span {
    flex: 1;
}

.aichat-ec-free-tip .button {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Free key modal */
.aichat-ec-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100100;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: aichatEcFadeIn 0.2s ease;
}

.aichat-ec-modal {
    background: #fff;
    border-radius: 14px;
    max-width: 520px;
    width: 90%;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: aichatEcSlideUp 0.25s ease;
}

.aichat-ec-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #94a3b8;
    line-height: 1;
    padding: 4px;
}

.aichat-ec-modal-close:hover {
    color: #334155;
}

.aichat-ec-modal h3 {
    margin: 0 0 18px;
    font-size: 18px;
    color: #1e293b;
}

.aichat-ec-modal ol {
    margin: 0 0 18px;
    padding-left: 20px;
}

.aichat-ec-modal ol li {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
}

.aichat-ec-modal .aichat-ec-modal-step-title {
    font-weight: 600;
    color: #1e293b;
    display: block;
    margin-bottom: 4px;
}

.aichat-ec-modal a {
    color: #4285f4;
    font-weight: 500;
}

.aichat-ec-modal .aichat-ec-modal-footer {
    text-align: center;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

@keyframes aichatEcFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Settings page - free key tip */
.aichat-free-key-tip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-top: 16px;
    background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 100%);
    border: 1px solid #fbbf24;
    border-radius: 8px;
    font-size: 13px;
    color: #92400e;
    line-height: 1.5;
}

.aichat-free-key-tip i {
    font-size: 18px;
    color: #f59e0b;
    flex-shrink: 0;
}

.aichat-free-key-tip span {
    flex: 1;
}

.aichat-free-key-tip .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* ============================================================================
   Claude Warning
   ============================================================================ */
.aichat-ec-claude-warning {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.aichat-ec-claude-warning.info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.aichat-ec-claude-warning.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.aichat-ec-claude-warning i {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.aichat-ec-claude-warning.info i {
    color: #3b82f6;
}

.aichat-ec-claude-warning.error i {
    color: #dc2626;
}

.aichat-ec-claude-warning strong {
    display: block;
    margin-bottom: 4px;
}

.aichat-ec-claude-warning p {
    margin: 0;
}

/* ============================================================================
   Responsive
   ============================================================================ */
@media (max-width: 600px) {
    .aichat-ec-step-content {
        padding: 24px;
    }

    .aichat-ec-steps {
        padding: 20px;
    }

    .aichat-ec-step-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

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

    .aichat-ec-type-grid,
    .aichat-ec-mode-cards {
        grid-template-columns: 1fr;
    }

    .aichat-ec-tone-options {
        flex-direction: column;
    }

    .aichat-ec-api-field {
        flex-direction: column;
    }
}
