:root {
    --ea-primary: #6366f1;
    --ea-primary-hover: #4f46e5;
    --ea-success: #10b981;
    --ea-error: #ef4444;
    --ea-border: #e2e8f0;
    --ea-gray: #64748b;
}

* {
    box-sizing: border-box;
}

#envio-artes-container {
    max-width: 1100px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* Removed white background and styles to fix "White Container" issue */
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.ea-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ea-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}

.ea-header h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
}

.ea-header p {
    margin: 0;
    color: var(--ea-gray);
    font-size: 14px;
}

/* Steps Indicator */
.ea-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.ea-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ea-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

.ea-step.active .ea-step-number {
    background: var(--ea-primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.ea-step.completed .ea-step-number {
    background: var(--ea-success);
    color: white;
}

.ea-step-label {
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
}

.ea-step.active .ea-step-label {
    color: var(--ea-primary);
}

.ea-step.completed .ea-step-label {
    color: var(--ea-success);
}

.ea-step-line {
    width: 80px;
    height: 2px;
    background: #e2e8f0;
    margin: 0 20px;
}

/* Step Content */
.ea-step-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.ea-step-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Table */
.ea-table-container {
    margin-bottom: 20px;
}

.ea-products-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.ea-products-table thead {
    background: #f8fafc;
    border-bottom: 2px solid var(--ea-border);
}

.ea-products-table th {
    padding: 12px 15px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ea-products-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.ea-products-table tbody tr:hover {
    background: #fafbfc;
}

.ea-products-table td {
    padding: 15px;
    vertical-align: middle;
}

/* Select */
.ea-produto-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--ea-border);
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: all 0.2s;
}

.ea-produto-select:focus {
    outline: none;
    border-color: var(--ea-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* File Cell */
.ea-file-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ea-upload-btn {
    padding: 8px 14px;
    background: #fff;
    border: 1px solid var(--ea-border);
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    color: #475569;
    white-space: nowrap;
}

.ea-upload-btn:hover {
    border-color: var(--ea-primary);
    color: var(--ea-primary);
    background: #f5f7ff;
}

.ea-upload-btn.has-file {
    background: #ecfdf5;
    border-color: var(--ea-success);
    color: var(--ea-success);
}

.ea-upload-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.ea-file-name {
    font-size: 12px;
    color: var(--ea-gray);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ea-file-name.has-file {
    color: #0f172a;
    font-weight: 500;
}

/* Actions Cell */
.ea-actions-cell {
    text-align: center;
}

.ea-remove-row {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.ea-remove-row:hover {
    background: #fee2e2;
    color: #dc2626;
}

.ea-remove-row .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Add Row Button */
.ea-add-row-btn {
    width: 100%;
    padding: 12px;
    background: #f8fafc;
    border: 2px dashed var(--ea-border);
    border-radius: 6px;
    color: var(--ea-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.ea-add-row-btn:hover {
    background: #f5f7ff;
    border-color: var(--ea-primary);
}

.ea-add-row-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Submit Section */
#ea-submit-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f1f5f9;
}

.ea-submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--ea-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.ea-submit-btn:hover:not(:disabled) {
    background: var(--ea-primary-hover);
}

.ea-submit-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

.btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: none;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading .btn-loader {
    display: inline-block;
}

.loading .btn-text {
    display: none;
}

/* Analysis Step */
.ea-analysis-header {
    text-align: center;
    margin-bottom: 30px;
}

.ea-analysis-header h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 600;
    color: #1e293b;
}

.ea-analysis-header p {
    margin: 0;
    color: var(--ea-gray);
}

#ea-analysis-results {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.ea-analysis-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid;
    transition: all 0.3s;
}

.ea-analysis-item.success {
    border-color: var(--ea-success);
    background: #f0fdf4;
}

.ea-analysis-item.error {
    border-color: var(--ea-error);
    background: #fef2f2;
}

.ea-analysis-header-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ea-analysis-header-item h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}

.ea-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.ea-analysis-item.success .ea-badge {
    background: var(--ea-success);
    color: white;
}

.ea-analysis-item.error .ea-badge {
    background: var(--ea-error);
    color: white;
}

.ea-file-info {
    font-size: 13px;
    color: var(--ea-gray);
    margin: 8px 0 15px;
}

/* Analysis Content Layout */
.ea-analysis-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.ea-analysis-image {
    flex-shrink: 0;
    width: 200px;
}

.ea-analysis-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ea-ai-analysis {
    flex: 1;
    font-size: 14px;
    line-height: 1.7;
    color: #334155;
}

.ea-ai-analysis h5 {
    margin: 15px 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 5px;
}

.ea-ai-analysis h5:first-child {
    margin-top: 0;
}

.ea-ai-analysis p {
    margin: 8px 0;
}

.ea-ai-analysis ul {
    margin: 10px 0;
    padding-left: 20px;
}

.ea-ai-analysis li {
    margin: 6px 0;
    list-style: disc;
}

.ea-ai-analysis strong {
    color: #1e293b;
    font-weight: 600;
}

.ea-error-msg {
    color: var(--ea-error);
    font-weight: 500;
    font-size: 14px;
}

/* Analysis Actions */
.ea-analysis-actions {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 20px;
}

.ea-back-btn {
    padding: 14px 24px;
    background: #fff;
    color: var(--ea-gray);
    border: 2px solid var(--ea-border);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.ea-back-btn:hover {
    border-color: var(--ea-primary);
    color: var(--ea-primary);
    background: #f5f7ff;
}

.ea-back-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.ea-analysis-actions .ea-submit-btn {
    flex: 1;
}

/* Thank You Step */
.ea-thank-you {
    text-align: center;
    padding: 60px 40px;
}

.ea-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.ea-success-icon .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: white;
}

.ea-thank-you h3 {
    margin: 0 0 15px;
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
}

.ea-thank-you p {
    margin: 10px 0;
    font-size: 16px;
    color: var(--ea-gray);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    #envio-artes-container {
        padding: 20px;
    }

    .ea-products-table {
        font-size: 13px;
    }

    .ea-products-table th,
    .ea-products-table td {
        padding: 10px 8px;
    }

    .ea-upload-btn .btn-label {
        display: none;
    }

    .ea-steps-indicator {
        padding: 15px 0;
    }

    .ea-step-line {
        width: 40px;
        margin: 0 10px;
    }

    .ea-step-label {
        font-size: 11px;
    }
}

/* Mockup Styles */
.ea-analysis-mockup {
    flex-shrink: 0;
    width: 200px;
    position: relative;
}

.ea-analysis-mockup img {
    border-color: #6366f1 !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2) !important;
}

.ea-mockup-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* PDF Button */
.ea-pdf-btn {
    padding: 14px 24px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.ea-pdf-btn:hover:not(:disabled) {
    background: #b91c1c;
}

.ea-pdf-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

.ea-pdf-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Warning/Rejected States */
.ea-analysis-item.warning {
    border-color: #f59e0b;
    background: #fffbeb;
}

.ea-analysis-item.warning .ea-badge {
    background: #f59e0b;
    color: white;
}

.ea-analysis-item.rejected {
    border-color: #dc2626;
    background: #fef2f2;
}

.ea-analysis-item.rejected .ea-badge {
    background: #dc2626;
    color: white;
}

/* Field Editor Styles */
.ea-field-editor {
    display: grid;
    grid-template-columns: 250px 1fr 280px;
    gap: 20px;
    min-height: 600px;
}

.ea-editor-sidebar {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    overflow-y: auto;
    max-height: 700px;
}

.ea-editor-sidebar h3 {
    margin-top: 0;
    font-size: 16px;
    color: #1e293b
}

.ea-sidebar-desc {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 15px
}

.ea-field-category {
    margin-bottom: 20px
}

.ea-field-category h4 {
    font-size: 13px;
    margin: 0 0 10px;
    color: #475569;
    font-weight: 600
}

.ea-field-item {
    padding: 10px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: move;
    font-size: 13px;
    transition: all 0.2s
}

.ea-field-item:hover {
    background: #f0f9ff;
    border-color: #3b82f6
}

.ea-editor-canvas {
    flex: 1;
    display: flex;
    flex-direction: column
}

.ea-editor-canvas h3 {
    margin-top: 0;
    font-size: 16px;
    color: #1e293b
}

.ea-canvas-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px
}

.ea-btn-secondary {
    padding: 10px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s
}

.ea-btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1
}

.ea-canvas-wrapper {
    position: relative;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    min-height: 500px;
    overflow: hidden
}

.ea-canvas-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: none;
    z-index: 1
}

#ea-canvas-image {
    width: 100%;
    display: block;
    position: relative;
    z-index: 0
}

.ea-canvas-fields {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2
}

.ea-canvas-field {
    position: absolute;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px dashed #94a3b8;
    cursor: move;
    white-space: nowrap;
    user-select: none;
    transition: all 0.2s
}

.ea-canvas-field:hover {
    border-color: #6366f1;
    background: rgba(250, 250, 255, 0.95)
}

.ea-canvas-field.selected {
    border-color: #6366f1;
    border-style: solid;
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2)
}

.ea-editor-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: space-between
}

.ea-editor-properties {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    overflow-y: auto;
    max-height: 700px
}

.ea-editor-properties h3 {
    margin-top: 0;
    font-size: 16px;
    color: #1e293b
}

.ea-no-selection {
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
    padding: 40px 20px
}

.ea-prop-group {
    margin-bottom: 15px
}

.ea-prop-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px
}

.ea-prop-group input[type=number],
.ea-prop-group input[type=color],
.ea-prop-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px
}

.ea-prop-group input[type=checkbox] {
    width: auto;
    margin-right: 8px
}

.ea-btn-danger {
    width: 100%;
    padding: 12px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    transition: all 0.2s
}

.ea-btn-danger:hover {
    background: #b91c1c
}

@media (max-width:1200px) {
    .ea-field-editor {
        grid-template-columns: 1fr;
        gap: 15px
    }

    .ea-editor-sidebar,
    .ea-editor-properties {
        max-height: 400px
    }
}

/* Photo Field Style */
.ea-photo-field {
    background: rgba(200, 200, 200, 0.3) !important;
    border: 2px dashed #6366f1 !important;
    text-align: center !important;
    padding: 0 !important
}

.ea-photo-field span {
    display: block;
    font-size: 11px;
    line-height: 1.4;
    color: #6366f1
}

.ea-prop-group .description {
    font-size: 11px;
    color: #94a3b8;
    margin-left: 8px
}

/* Resizable Handle Style */
.ui-resizable-se {
    width: 12px;
    height: 12px;
    background: #6366f1;
    border: 2px solid white;
    border-radius: 0 0 4px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: se-resize !important
}

.ea-canvas-field.ui-resizable {
    border: 2px solid #6366f1 !important
}

.ea-canvas-field.ui-resizable-resizing {
    border: 2px solid #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important
}

/* Art Selector Tabs */
.ea-art-selector {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px
}

.ea-art-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px
}

.ea-art-tab {
    padding: 10px 15px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    font-size: 13px
}

.ea-art-tab:hover {
    border-color: #6366f1;
    background: #f5f7ff
}

.ea-art-tab.active {
    border-color: #6366f1;
    background: #6366f1;
    color: white
}

.ea-tab-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    font-weight: 700;
    font-size: 12px
}

.ea-art-tab.active .ea-tab-number {
    background: rgba(255, 255, 255, 0.3)
}

.ea-tab-title {
    font-weight: 600
}

.ea-current-art-info {
    font-size: 14px;
    color: #64748b;
    font-weight: 500
}

.ea-no-arts {
    text-align: center;
    padding: 20px;
    color: #94a3b8
}

/* Added Fields List */
.ea-added-fields-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f0f9ff;
    border-radius: 8px;
    border: 2px solid #bfdbfe
}

.ea-added-fields-section h4 {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #1e40af;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px
}

.ea-added-fields-list {
    max-height: 200px;
    overflow-y: auto
}

.ea-added-field-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: white;
    border: 1px solid #dbeafe;
    border-radius: 6px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: all 0.2s
}

.ea-added-field-item:hover {
    background: #eff6ff;
    border-color: #93c5fd
}

.ea-field-icon {
    font-size: 16px
}

.ea-field-label {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #1e3a8a
}

.ea-remove-field-btn {
    width: 20px;
    height: 20px;
    border: none;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    transition: all 0.2s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center
}

.ea-remove-field-btn:hover {
    background: #dc2626;
    transform: scale(1.1)
}

.ea-no-fields {
    text-align: center;
    padding: 15px;
    color: #94a3b8;
    font-size: 12px
}

.ea-field-item.ea-field-added {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f1f5f9 !important
}

.ea-field-item.ea-field-added:hover {
    background: #f1f5f9 !important;
    transform: none !important
}

/* Inline checkboxes for Bold and Italic */
.ea-prop-inline {
    display: flex !important;
    gap: 20px;
    align-items: center
}

.ea-prop-checkbox {
    display: flex;
    align-items: center;
    gap: 6px
}

.ea-prop-checkbox input[type='checkbox'] {
    margin: 0;
    width: 18px;
    height: 18px;
    cursor: pointer
}

.ea-prop-checkbox label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px
}

/* Move added fields to properties column */
.ea-editor-properties .ea-added-fields-section {
    margin-top: 20px;
    padding: 15px;
    background: #f0f9ff;
    border-radius: 8px;
    border: 2px solid #bfdbfe;
    max-height: 300px;
    overflow-y: auto
}

/* Step 0: Service Selection Cards */
.ea-service-selection {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.ea-service-selection h2 {
    font-size: 32px;
    color: #1e293b;
    margin-bottom: 10px;
    font-weight: 700;
}

.ea-service-subtitle {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 40px;
}

.ea-service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.ea-service-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.ea-service-card:hover {
    border-color: #6366f1;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
    transform: translateY(-4px);
}

.ea-service-card[data-service="upload"]:hover {
    border-color: #10b981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.ea-service-card[data-service="create"] {
    opacity: 0.7;
}

.ea-service-card[data-service="request"] {
    opacity: 0.7;
}

.ea-service-icon {
    font-size: 64px;
    margin-bottom: 20px;
    line-height: 1;
}

.ea-service-card h3 {
    font-size: 22px;
    color: #1e293b;
    margin-bottom: 12px;
    font-weight: 700;
}

.ea-service-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 60px;
}

.ea-service-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.ea-service-features li {
    font-size: 14px;
    color: #475569;
    padding: 8px 0;
    padding-left: 8px;
}

.ea-service-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.ea-service-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.ea-service-card[data-service="upload"] .ea-service-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.ea-service-card[data-service="upload"] .ea-service-btn:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.ea-service-card[data-service="create"] .ea-service-btn,
.ea-service-card[data-service="request"] .ea-service-btn {
    background: #94a3b8;
    cursor: not-allowed;
}

.ea-service-card[data-service="create"] .ea-service-btn:hover,
.ea-service-card[data-service="request"] .ea-service-btn:hover {
    transform: none;
    box-shadow: none;
}

/* Update progress bar for Step 0 */
.ea-progress-bar .ea-progress-step[data-step="0"] {
    display: flex;
}

/* Progress Bar (Step Indicator) */
.ea-progress-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
    padding: 20px
}

.ea-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative
}

.ea-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s
}

.ea-progress-step.active .ea-step-circle {
    background: #10b981;
    color: white
}

.ea-step-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500
}

.ea-progress-step.active .ea-step-label {
    color: #10b981;
    font-weight: 700
}

/* Clickable Progress Steps */
.ea-progress-step {
    cursor: pointer;
    transition: all 0.3s
}

.ea-progress-step:hover .ea-step-circle {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2)
}

.ea-progress-step.completed .ea-step-circle {
    background: #6366f1;
    color: white
}

.ea-progress-step.completed:hover .ea-step-circle {
    background: #4f46e5
}

.ea-progress-step:not(.completed):not(.active) {
    opacity: 0.5;
    cursor: not-allowed
}

.ea-progress-step:not(.completed):not(.active):hover .ea-step-circle {
    transform: none;
    box-shadow: none
}

/* Step 0: Service Selection Cards */
.ea-service-selection {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.ea-service-selection h2 {
    font-size: 32px;
    color: #1e293b;
    margin-bottom: 10px;
    font-weight: 700;
}

.ea-service-subtitle {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 40px;
}

.ea-service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1200px) {
    .ea-service-cards {
        grid-template-columns: 1fr;
    }
}

.ea-service-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.ea-service-card:hover {
    border-color: #6366f1;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
    transform: translateY(-4px);
}

.ea-service-card[data-service="upload"]:hover {
    border-color: #10b981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.ea-service-card[data-service="create"] {
    opacity: 0.7;
}

.ea-service-card[data-service="request"] {
    opacity: 0.7;
}

.ea-service-icon {
    font-size: 64px;
    margin-bottom: 20px;
    line-height: 1;
}

.ea-service-card h3 {
    font-size: 22px;
    color: #1e293b;
    margin-bottom: 12px;
    font-weight: 700;
}

.ea-service-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 60px;
}

.ea-service-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.ea-service-features li {
    font-size: 14px;
    color: #475569;
    padding: 8px 0;
    padding-left: 8px;
}

.ea-service-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.ea-service-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.ea-service-card[data-service="upload"] .ea-service-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.ea-service-card[data-service="upload"] .ea-service-btn:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.ea-service-card[data-service="create"] .ea-service-btn,
.ea-service-card[data-service="request"] .ea-service-btn {
    background: #94a3b8;
    cursor: not-allowed;
}

.ea-service-card[data-service="create"] .ea-service-btn:hover,
.ea-service-card[data-service="request"] .ea-service-btn:hover {
    transform: none;
    box-shadow: none;
}

/* Update progress bar for Step 0 */
.ea-progress-bar .ea-progress-step[data-step="0"] {
    display: flex;
}

/* Progress Step States - Updated */
.ea-progress-step:not(.completed):not(.active) {
    opacity: 0.4;
    cursor: not-allowed !important;
    pointer-events: none
}

.ea-progress-step.completed {
    cursor: pointer !important;
    pointer-events: auto
}

.ea-progress-step.active {
    cursor: pointer !important;
    pointer-events: auto
}

/* Fix: Enable Create Card Styles */
.ea-service-card[data-service='create'] {
    opacity: 1 !important;
}

.ea-service-card[data-service='create'] .ea-service-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.ea-service-card[data-service='create'] .ea-service-btn:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
    transform: scale(1.02) !important;
}


/* --- Template Gallery Enhancements --- */
#ea-template-grid::-webkit-scrollbar {
    width: 8px;
}

#ea-template-grid::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

#ea-template-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

#ea-template-grid::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.ea-close-gallery:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.ea-template-thumb-wrapper img {
    max-height: 90%;
    max-width: 90%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

@media (max-width: 640px) {
    .ea-modal-content {
        padding: 20px;
        width: 100%;
        height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    #ea-template-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Antigravity Update: Unified Steps Style --- */
.ea-progress-bar,
.ea-req-steps,
.ea-create-flow-progress {
    display: flex;
    justify-content: space-between;
    margin: 30px auto 50px;
    max-width: 800px;
    position: relative;
    background: transparent;
    padding: 0;
    border: none;
    height: auto !important;
    overflow: visible !important;
}

/* Hide Create Flow progress by default, JS will show it */
.ea-create-flow-progress {
    display: none;
}

.ea-progress-bar::before,
.ea-req-steps::before,
.ea-create-flow-progress::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 50px;
    right: 50px;
    height: 3px;
    background: #e2e8f0;
    z-index: 0;
}

.ea-progress-step,
.ea-step-item {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
    cursor: default;
    pointer-events: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    opacity: 1 !important;
}

.ea-step-circle,
.ea-progress-step .ea-step-number {
    width: 48px;
    height: 48px;
    background: #fff;
    color: #94a3b8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    border: 3px solid #e2e8f0;
    font-weight: 800;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.ea-step-line {
    display: none !important;
}

.ea-progress-step.active .ea-step-circle,
.ea-step-item.active .ea-step-circle,
.ea-progress-step.active .ea-step-number {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.2);
}

.ea-progress-step.completed .ea-step-circle {
    background: #fff;
    color: #6366f1;
    border-color: #6366f1;
}

.ea-step-label {
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    transition: color 0.3s;
}

.ea-progress-step.active .ea-step-label,
.ea-step-item.active .ea-step-label {
    color: #1e293b;
    font-weight: 700;
}