/* ========================================
   Create Page Styles
   ======================================== */

.create-main {
    min-height: 100vh;
    padding: 120px 0 60px;
}

/* ========================================
   Progress Steps
   ======================================== */
.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    padding: 24px 32px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    transition: all var(--transition-normal);
    min-width: 80px;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 1;
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.step.active .step-number {
    background: var(--gradient-primary);
    border-color: var(--purple);
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.step.completed .step-number {
    background: #10B981;
    border-color: #10B981;
    color: white;
}

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.step.active .step-label {
    color: var(--text-primary);
}

.step.completed .step-label {
    color: var(--text-secondary);
}

.step-line {
    width: 50px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 0 8px;
    align-self: flex-start;
    margin-top: 20px;
}

.step.completed + .step-line {
    background: #10B981;
}

.step.active + .step-line {
    background: linear-gradient(90deg, var(--purple), rgba(255, 255, 255, 0.1));
}

/* ========================================
   Step Content
   ======================================== */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.step-panel {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    padding: 32px;
}

.step-panel.wide {
    max-width: 900px;
}

.step-panel.result-panel-full {
    max-width: 800px;
}

.panel-header {
    margin-bottom: 32px;
    text-align: center;
}

.panel-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.panel-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ========================================
   Free Generation Info
   ======================================== */
.free-generation-info {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 24px;
    text-align: center;
    font-size: 0.95rem;
    color: #10B981;
}

/* ========================================
   Upload Section
   ======================================== */
.upload-section {
    margin-bottom: 28px;
}

.upload-area {
    border: 2px dashed rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-lg);
    background: rgba(124, 58, 237, 0.05);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    user-select: none;
}

.upload-area:hover {
    border-color: rgba(124, 58, 237, 0.5);
    background: rgba(124, 58, 237, 0.1);
}

.upload-area.dragover {
    border-color: var(--purple);
    background: rgba(124, 58, 237, 0.15);
}

.upload-content {
    padding: 60px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upload-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 8px;
}

.upload-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.upload-subtext {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.upload-formats {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    margin-top: 8px;
}

/* Upload Preview */
.upload-preview {
    position: relative;
    padding: 16px;
}

.upload-preview img {
    width: 100%;
    max-height: 350px;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.remove-image {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}

.remove-image:hover {
    background: #EF4444;
    transform: scale(1.1);
}

/* ========================================
   Navigation Buttons
   ======================================== */
.next-btn,
.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.next-btn {
    width: 100%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.next-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
}

.next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.back-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.step-navigation {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.step-navigation .back-btn {
    flex: 0 0 auto;
}

.step-navigation .next-btn,
.step-navigation .generate-btn {
    flex: 1;
}

/* ========================================
   Category & Scene Selection
   ======================================== */
.selection-section {
    margin-bottom: 28px;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-label svg {
    color: var(--purple);
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.category-btn:hover {
    border-color: rgba(124, 58, 237, 0.3);
    background: rgba(124, 58, 237, 0.05);
}

.category-btn.active {
    border-color: var(--purple);
    background: rgba(124, 58, 237, 0.1);
}

.category-icon {
    font-size: 2rem;
}

.category-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
}

.category-btn.active .category-name {
    color: var(--text-primary);
}

/* Scene Grid */
.scene-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.scene-placeholder {
    grid-column: 1 / -1;
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
}

.scene-btn {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    overflow: hidden;
}

.scene-btn:hover {
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateY(-2px);
}

.scene-btn.active {
    border-color: var(--purple);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.scene-preview {
    height: 80px;
    width: 100%;
}

.scene-info {
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.scene-icon {
    font-size: 1.2rem;
}

.scene-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.scene-btn.active .scene-name {
    color: var(--text-primary);
}

.model-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 100px;
    font-weight: 600;
}

/* ========================================
   Custom Description
   ======================================== */
.custom-description-section {
    margin-bottom: 28px;
}

.custom-textarea {
    width: 100%;
    min-height: 100px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    transition: all var(--transition-fast);
}

.custom-textarea:focus {
    outline: none;
    border-color: var(--purple);
    background: rgba(124, 58, 237, 0.05);
}

.custom-textarea::placeholder {
    color: var(--text-muted);
}

/* ========================================
   Settings Section
   ======================================== */
.settings-section {
    margin-bottom: 28px;
}

.section-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: -8px;
    margin-bottom: 16px;
}

/* Marketplace Buttons */
.marketplace-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mp-btn {
    flex: 1;
    min-width: 140px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
}

.mp-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.mp-btn.active {
    border-color: var(--purple);
    background: rgba(124, 58, 237, 0.1);
    color: var(--text-primary);
}

.mp-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.mp-color.wb { background: #CB11AB; }
.mp-color.ozon { background: #005BFF; }
.mp-color.yandex { background: #FFCC00; }

.mp-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.mp-size {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* AI Text Section */
.ai-text-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.demo-badge,
.ai-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: white;
    border-radius: 100px;
    font-weight: 700;
    margin-left: 8px;
}

.ai-badge {
    background: var(--gradient-primary);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 26px;
    transition: all var(--transition-fast);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--gradient-primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

/* AI Text Options */
.ai-text-options {
    margin-top: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Text Blocks Container */
.text-blocks-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.text-block-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 12px;
    transition: all var(--transition-fast);
}

.text-block-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(124, 58, 237, 0.3);
}

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

.text-block-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.text-block-remove {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    padding: 0;
}

.text-block-remove:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
    transform: scale(1.1);
}

.text-block-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.text-block-input:focus {
    outline: none;
    border-color: var(--purple);
    background: rgba(255, 255, 255, 0.08);
}

.text-block-input::placeholder {
    color: var(--text-muted);
}

.text-block-settings {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.setting-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.setting-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    min-width: 70px;
    font-weight: 500;
}

.setting-label svg {
    opacity: 0.7;
}

.text-type-select,
.text-style-select,
.text-position-select,
.text-effect-select {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.text-type-select:focus,
.text-style-select:focus,
.text-position-select:focus,
.text-effect-select:focus {
    outline: none;
    border-color: var(--purple);
    background: rgba(255, 255, 255, 0.06);
}

.text-type-select:hover,
.text-style-select:hover,
.text-position-select:hover,
.text-effect-select:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(124, 58, 237, 0.3);
}

.add-text-block-btn {
    width: 100%;
    padding: 12px 16px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px dashed rgba(124, 58, 237, 0.4);
    border-radius: var(--radius-md);
    color: var(--purple);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-fast);
    margin-bottom: 16px;
}

.add-text-block-btn:hover {
    background: rgba(124, 58, 237, 0.15);
    border-color: var(--purple);
    transform: translateY(-2px);
}

.text-hint {
    padding: 12px;
    background: rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-md);
    margin-top: 12px;
}

.text-hint p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.text-hint strong {
    color: var(--text-primary);
}

/* AI Text Beta Warning */
.ai-text-beta-warning {
    margin-top: 12px;
    padding: 14px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.4);
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
}

.beta-warning-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    line-height: 1;
}

.beta-warning-content {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.beta-warning-content strong {
    color: #ef4444;
    font-weight: 600;
}

/* AI Text Warning */
.ai-text-warning {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.warning-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.warning-content {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.warning-content strong {
    color: #fbbf24;
}

/* Advanced AI Section */
.advanced-ai-section {
    margin-top: 20px;
    padding: 16px;
    background: rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-md);
    position: relative;
    z-index: 1;
}

.advanced-ai-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.advanced-ai-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    cursor: pointer;
    flex-shrink: 0;
}

.advanced-ai-toggle input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.advanced-ai-toggle .toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 26px;
    transition: all var(--transition-fast);
}

.advanced-ai-toggle .toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.advanced-ai-toggle input[type="checkbox"]:checked + .toggle-slider {
    background: var(--purple);
}

.advanced-ai-toggle input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.advanced-ai-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.advanced-ai-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.advanced-ai-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.advanced-ai-info {
    margin-top: 12px;
    padding: 12px;
    background: rgba(124, 58, 237, 0.08);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.advanced-ai-info strong {
    color: #ef4444;
}

/* Manual Editor Hint */
.manual-editor-hint {
    margin-top: 20px;
    padding: 14px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.hint-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    line-height: 1;
}

.hint-content {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.hint-content strong {
    color: #3b82f6;
    font-weight: 600;
}

/* Legacy styles for compatibility */
.ai-text-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.ai-text-input:focus {
    outline: none;
    border-color: var(--purple);
}

.ai-text-input::placeholder {
    color: var(--text-muted);
}

.quick-texts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.quick-text-btn {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quick-text-btn:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--purple);
    color: var(--text-primary);
}

.text-style-row {
    display: flex;
    gap: 12px;
}

.style-option {
    flex: 1;
}

.style-option label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.style-option select {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}

.style-option select:focus {
    outline: none;
    border-color: var(--purple);
}

/* Model Mode Section */
.model-mode-section {
    padding: 16px;
    background: rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-md);
}

/* ========================================
   Generate Button
   ======================================== */
.generate-btn {
    width: 100%;
    padding: 18px 32px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* ========================================
   Result Section
   ======================================== */
.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.result-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.result-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.action-btn.primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

/* Result Container */
.result-container {
    min-height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

/* Empty State */
.result-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
}

.empty-icon {
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    transition: color var(--transition-fast);
}

.empty-subtext {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.empty-icon {
    transition: all var(--transition-fast);
}

/* Loading State */
.result-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    background: rgba(124, 58, 237, 0.05);
    border-radius: var(--radius-lg);
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
}

.spinner-ring:nth-child(1) {
    border-top-color: var(--purple);
    animation: spin 1s ease-in-out infinite;
}

.spinner-ring:nth-child(2) {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-right-color: var(--pink);
    animation: spin 1.2s ease-in-out infinite reverse;
}

.spinner-ring:nth-child(3) {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    border-bottom-color: var(--blue);
    animation: spin 0.8s ease-in-out infinite;
}

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

.loading-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.loading-subtext {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

/* Result Image */
.result-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.result-image img {
    width: 100%;
    display: block;
}

.watermark {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
}


/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .progress-steps {
        padding: 20px;
        gap: 4px;
    }
    
    .step {
        min-width: 60px;
    }
    
    .step-number {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
    
    .step-line {
        width: 30px;
        margin-top: 17px;
    }
    
    .step-panel.wide {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .create-main {
        padding: 100px 0 40px;
    }
    
    .progress-steps {
        padding: 16px 12px;
        gap: 2px;
    }
    
    .step {
        min-width: 50px;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .step-line {
        width: 20px;
        margin: 0 4px;
        margin-top: 15px;
    }
    
    .step-panel {
        padding: 24px;
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .scene-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .marketplace-buttons {
        flex-direction: column;
    }
    
    .mp-btn {
        min-width: 100%;
    }
    
    .text-style-row {
        flex-direction: column;
    }
    
    .step-navigation {
        flex-direction: column;
    }
    
    .step-navigation .back-btn {
        order: 2;
    }
}

@media (max-width: 480px) {
    .progress-steps {
        padding: 12px 8px;
    }
    
    .step {
        min-width: 40px;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .step-label {
        font-size: 0.6rem;
    }
    
    .step-line {
        width: 12px;
        margin-top: 13px;
    }
    
    .panel-title {
        font-size: 1.4rem;
    }
    
    .upload-content {
        padding: 40px 16px;
    }
    
    .upload-icon {
        width: 80px;
        height: 80px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-texts {
        justify-content: center;
    }
    
    .generate-btn {
        padding: 16px 24px;
        font-size: 1rem;
    }
}
