* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e5e7eb;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    margin-bottom: 20px;
    margin-top: 30px;
    color: white;
    min-height: 60px;
    display: flex;
    align-items: center;
    padding: 12px 24px;
}

.header-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
    position: relative;
}

.header-left {
    position: absolute;
    left: 0;
    display: flex;
    align-items: center;
}

.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.header-right {
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    height: auto;
    width: clamp(120px, 15vw, 220px);
    filter: brightness(0) invert(1);
    margin-bottom: 4px;
}

.header-tagline {
    font-size: clamp(16px, 2.5vw, 20px);
    color: #F8FAFC;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 16px 0;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #60A5FA 0%, #34D399 50%, #F59E0B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: subtle-glow 3s ease-in-out infinite alternate;
}

@keyframes subtle-glow {
    from { filter: drop-shadow(0 0 2px rgba(96, 165, 250, 0.3)); }
    to { filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.5)); }
}

/* Enhanced Mode Selector */
.mode-selector {
    display: flex;
    gap: 12px;
    background: rgba(15, 23, 42, 0.8);
    padding: 6px;
    border-radius: 16px;
    border: 2px solid rgba(51, 65, 85, 0.6);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.mode-btn {
    background: transparent;
    color: #94A3B8;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}

.mode-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, transparent 0%, transparent 100%);
    transition: all 0.3s ease;
    z-index: -1;
}

.mode-btn:hover {
    color: #F1F5F9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.mode-btn:hover:before {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
}

.mode-btn.active {
    background: linear-gradient(135deg, #3B82F6 0%, #6366F1 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.mode-btn.active:hover {
    background: linear-gradient(135deg, #2563EB 0%, #5B21B6 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.mode-icon:before {
    margin-right: 6px;
}

.mode-btn[data-mode="custom"] .mode-icon:before {
    content: "📸";
}

.mode-btn[data-mode="madlib"] .mode-icon:before {
    content: "⚡";
}

/* Enhanced Primary CTA Button */
.btn-primary-cta {
    background: linear-gradient(135deg, #059669 0%, #0D9488 50%, #0891B2 100%);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 18px 36px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(5, 150, 105, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 280px;
    text-transform: none;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary-cta:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary-cta:hover:before {
    left: 100%;
}

.btn-primary-cta:hover {
    background: linear-gradient(135deg, #047857 0%, #0F766E 50%, #0E7490 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(5, 150, 105, 0.4);
}

.btn-primary-cta:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.5);
}

.btn-primary-cta:disabled {
    background: linear-gradient(135deg, #6B7280 0%, #9CA3AF 100%);
    color: #D1D5DB;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 16px rgba(107, 114, 128, 0.2);
}

.btn-primary-cta:disabled:hover {
    background: linear-gradient(135deg, #6B7280 0%, #9CA3AF 100%);
    transform: none;
    box-shadow: 0 4px 16px rgba(107, 114, 128, 0.2);
}

.btn-primary-cta .btn-icon {
    font-size: 20px;
    animation: pulse-icon 2s ease-in-out infinite;
}

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

/* Enhanced workflow actions section */
.workflow-actions {
    text-align: center;
    margin-top: 40px;
    position: relative;
}

/* Help Icon */
.help-icon {
    background: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.help-icon:hover {
    background: rgba(59, 130, 246, 0.3);
    color: white;
    border-color: #60A5FA;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Help Tooltip */
.help-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    backdrop-filter: blur(4px);
}

.help-content {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border: 2px solid #4b5563;
    border-radius: 20px;
    padding: 24px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

.help-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #9CA3AF;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.help-close:hover {
    color: white;
}

.help-content h3 {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.help-modes {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.help-mode {
    background: rgba(15, 23, 42, 0.6);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(51, 65, 85, 0.4);
    color: #E5E7EB;
    font-size: 14px;
    line-height: 1.5;
}

.help-mode strong {
    color: #F8FAFC;
    display: block;
    margin-bottom: 8px;
}

.help-note {
    text-align: center;
    color: #9CA3AF;
    font-size: 13px;
    font-style: italic;
    margin: 0;
}

/* Pricing Badge in Header */
.pricing-badge {
    background: linear-gradient(135deg, #1E40AF 0%, #7C3AED 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.3);
    border: 1px solid rgba(124, 58, 237, 0.3);
    white-space: nowrap;
    backdrop-filter: blur(4px);
    letter-spacing: 0.2px;
}

@keyframes gentle-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-2px); }
}


/* Enhanced Drop Zone */
.drop-zone {
    border: 3px dashed #4B5563;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8) 0%, rgba(55, 65, 81, 0.6) 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drop-zone:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(59, 130, 246, 0.05) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.drop-zone:hover {
    border-color: #60A5FA;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2);
}

.drop-zone:hover:before {
    transform: translateX(100%);
}

.drop-zone.drag-over {
    border-color: #34D399;
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%);
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(52, 211, 153, 0.3);
}

.drop-zone-content {
    z-index: 1;
    position: relative;
}

.upload-icon {
    font-size: 48px;
    color: #9CA3AF;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.drop-zone:hover .upload-icon {
    color: #60A5FA;
    transform: scale(1.1);
}

.drop-zone-primary {
    font-size: 18px;
    font-weight: 600;
    color: #F3F4F6;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.drop-zone:hover .drop-zone-primary {
    color: #FBBF24;
}

.drop-zone-secondary {
    font-size: 14px;
    color: #9CA3AF;
    margin-bottom: 16px;
}

.upload-btn {
    background: linear-gradient(135deg, #3B82F6 0%, #6366F1 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.upload-btn:hover {
    background: linear-gradient(135deg, #2563EB 0%, #5B21B6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Photo Preview Enhancement */
.preview {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.preview:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.preview img {
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.remove-btn, .change-btn {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-btn {
    top: 12px;
    right: 12px;
    font-size: 18px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.change-btn {
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
}

.remove-btn:hover, .change-btn:hover {
    background: rgba(239, 68, 68, 0.9);
    transform: translateX(-50%) scale(1.05);
}

.change-btn:hover {
    background: rgba(59, 130, 246, 0.9);
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 1024px) {
    .header-tagline {
        font-size: clamp(14px, 2.2vw, 18px);
        white-space: normal;
        text-align: center;
    }
    
    .mode-selector {
        gap: 8px;
    }
    
    .mode-btn {
        min-width: 120px;
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .header-layout {
        flex-direction: column;
        gap: 16px;
        position: static;
    }
    
    .header-left {
        position: static;
        order: 1;
        justify-content: center;
    }
    
    .header-logo {
        width: clamp(160px, 20vw, 280px);
        margin-bottom: 0;
    }
    
    .header-center {
        order: 3;
    }
    
    .header-right {
        position: static;
        order: 2;
        justify-content: center;
    }
    
    .pricing-badge {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .workflow-panel {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .workflow-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .btn-primary-cta {
        min-width: 240px;
        padding: 16px 32px;
        font-size: 16px;
    }
    
    
    .drop-zone {
        min-height: 160px;
        padding: 30px 15px;
    }
    
    .upload-icon {
        font-size: 36px;
    }
    
    .drop-zone-primary {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    main {
        padding: 20px;
        border-radius: 16px;
    }
    
    .workflow-column {
        padding: 24px;
        border-radius: 16px;
    }
    
    .header-tagline {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .mode-selector {
        flex-direction: column;
        width: 100%;
    }
    
    .mode-btn {
        min-width: 100%;
        padding: 12px 20px;
    }
    
    .btn-primary-cta {
        min-width: 200px;
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .trust-signals {
        padding: 12px;
        gap: 12px;
    }
    
    .trust-item {
        font-size: 13px;
    }
}

.header-cta {
    background: #3B82F6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.header-cta:hover {
    background: #2563EB;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

main {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
}

/* New Workflow Layout */
.workflow-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Main Tagline */
.main-tagline {
    text-align: center;
    font-size: clamp(14px, 2vw, 18px);
    color: #F8FAFC;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #60A5FA 0%, #34D399 50%, #F59E0B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: subtle-glow 3s ease-in-out infinite alternate;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workflow-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 800;
    color: #f9fafb;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.workflow-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
    align-items: start;
}

.workflow-column {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border: 2px solid #4b5563;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(8px);
}

.workflow-column:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.column-title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #f9fafb;
    margin-bottom: 28px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Enhanced Mode Buttons */
.mode-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #d1d5db;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.mode-btn.active {
    background: #3b82f6;
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.mode-btn.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.mode-icon {
    font-size: 1.1rem;
}

/* Workflow Actions */
.workflow-actions {
    text-align: center;
    margin-top: 48px;
    padding: 0 20px;
}

.btn-primary-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 18px 36px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-primary-cta:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

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

.btn-icon {
    font-size: 1.3rem;
}

/* Form Elements */
.input-label {
    display: block;
    font-weight: 600;
    color: #f3f4f6;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.edit-textarea, .form-input, .form-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #6b7280;
    border-radius: 8px;
    background: #1f2937;
    color: #f3f4f6;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.edit-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.edit-textarea:focus, .form-input:focus, .form-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.input-help {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 6px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.input-section {
    margin-bottom: 20px;
}

/* Suggested Edits */
.suggested-edits {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(107, 114, 128, 0.5);
}

.suggestions-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f3f4f6;
    margin-bottom: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.suggestion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.suggestion-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #4b5563;
    border: 1px solid #6b7280;
    border-radius: 8px;
    color: #f3f4f6;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-weight: 500;
}

.suggestion-btn:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    transform: translateY(-1px);
}

.suggestion-icon {
    font-size: 1.1rem;
}

/* Enhanced Drop Zone */
.drop-zone-primary {
    font-weight: 500;
    color: #f3f4f6;
    margin: 8px 0;
    font-size: 1.05rem;
}

.drop-zone-secondary {
    color: #d1d5db;
    margin: 8px 0;
    font-size: 0.9rem;
}

.change-btn {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(59, 130, 246, 0.9);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.change-btn:hover {
    background: #3b82f6;
}

/* Preview Section */
.preview-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(107, 114, 128, 0.5);
}

.preview-text {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 12px;
    padding: 20px;
    font-size: 0.95rem;
    color: #f3f4f6;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    align-items: start;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.right-column {
    display: flex;
    flex-direction: column;
    padding-top: 60px;
}

.mode-selector-container {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0;
}

.mode-selector {
    margin: 0;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.prompt-container {
    background: #f8fafc;
    border-radius: 15px;
    padding: 25px;
    border: 2px solid #e2e8f0;
}

.prompt-container h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #f3f4f6;
    font-size: 1.3rem;
}

.prompt-input-area textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #cbd5e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.3s ease;
}

.prompt-input-area textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.prompt-help {
    margin-top: 10px;
    padding: 10px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
}

.prompt-help p {
    margin: 0;
    color: #f3f4f6;
}

.upload-container h2 {
    text-align: center;
    margin-bottom: 12px;
    color: #f3f4f6;
    font-size: 1.3rem;
}

.drop-zone {
    position: relative;
    border: 3px dashed #4b5563;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.25);
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.upload-icon {
    font-size: 3rem;
    opacity: 0.7;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.drop-zone p {
    margin: 5px 0;
    color: #d1d5db;
}

.or-text {
    font-size: 0.9rem;
    color: #9ca3af;
}

.upload-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.upload-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.preview {
    position: relative;
    width: 100%;
    height: 100%;
}

.preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    background: rgba(0,0,0,0.9);
}

.action-section {
    text-align: center;
}

.process-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.btn-free {
    background: #10b981;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-free:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.btn-premium {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    color: white;
}

.btn-premium:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff5252, #ffb142);
    transform: translateY(-2px);
}

.btn-download {
    background: #4299e1;
    color: white;
}

.btn-download:hover {
    background: #3182ce;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
    border-color: #cbd5e0;
}

.btn-premium {
    background: linear-gradient(135deg, #ffc107, #ff8c00);
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
    border: none;
}

.btn-premium:hover {
    background: linear-gradient(135deg, #ffb700, #ff7700);
    box-shadow: 0 6px 12px rgba(255, 193, 7, 0.4);
    transform: translateY(-2px);
}

.btn-demo {
    background: linear-gradient(135deg, #9f7aea, #667eea);
    color: white;
}

.btn-demo:hover:not(:disabled) {
    background: linear-gradient(135deg, #8b5cf6, #5a67d8);
    transform: translateY(-2px);
}

.processing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.processing-animation {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.jersey-icon {
    animation: bounce 2s infinite;
}

.transform-arrows {
    display: flex;
    gap: 5px;
}

.arrow {
    animation: slideRight 1.5s infinite;
    animation-delay: calc(var(--i) * 0.2s);
}

.arrow:nth-child(1) { --i: 0; }
.arrow:nth-child(2) { --i: 1; }
.arrow:nth-child(3) { --i: 2; }

.team-icon {
    animation: glow 2s infinite alternate;
}

.progress-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s ease;
    animation: shimmer 2s infinite;
}

.progress-percentage {
    font-size: 1.2rem;
    font-weight: bold;
    color: #667eea;
}

.processing-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: 600px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.step-item.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: scale(1.02);
}

.step-item.completed {
    background: #48bb78;
    color: white;
}

.step-icon {
    font-size: 1.3rem;
    min-width: 25px;
}

.step-text {
    flex: 1;
    font-weight: 500;
    font-size: 0.85rem;
}

.step-status {
    font-size: 1rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes slideRight {
    0% { transform: translateX(-10px); opacity: 0.3; }
    50% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(10px); opacity: 0.3; }
}

@keyframes glow {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); filter: brightness(1.2); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.progress-fill {
    background: linear-gradient(90deg, #667eea 25%, #764ba2 50%, #667eea 75%);
    background-size: 200% 100%;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.result-section {
    margin-top: 25px;
    text-align: center;
}

.result-container {
    background: #f7fafc;
    border-radius: 15px;
    padding: 20px;
    margin: 15px 0;
}

.result-container img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.info-section {
    margin-top: 30px;
    text-align: center;
}

.info-section h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #f3f4f6;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}

footer {
    text-align: center;
    margin-top: 25px;
    color: white;
    opacity: 0.8;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #000;
}

#card-element {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

#paymentErrors {
    color: #fa755a;
    margin-top: 10px;
}

/* Processing Overlay Styles */
.processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.processing-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.processing-spinner {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.processing-content h3 {
    color: #1f2937;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.processing-content .progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.processing-content .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s ease;
    animation: shimmer 2s infinite;
}

.processing-content p {
    color: #4b5563;
    font-size: 1rem;
    margin-top: 10px;
}

/* Result Overlay Styles */
.result-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.result-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #9ca3af;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f7fafc;
    color: #f3f4f6;
}

.result-content h3 {
    color: #1f2937;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.result-image-container {
    margin: 20px 0;
    background: #000000;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.result-image-container img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
}

/* CSS Watermark Overlay System */
.watermark-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background-image: url('./swaplogo.png');
    background-repeat: repeat;
    background-size: 120px 80px;
    background-position: 0 0;
    opacity: 0.6;
    pointer-events: none;
    z-index: 2;
    border-radius: 10px;
    mix-blend-mode: multiply;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    filter: contrast(1.2) brightness(0.9);
}

.watermark-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 40%, rgba(59, 130, 246, 0.15) 50%, transparent 60%);
    animation: watermarkShimmer 4s ease-in-out infinite;
}

@keyframes watermarkShimmer {
    0%, 100% { transform: translateX(-100%) translateY(-100%); }
    50% { transform: translateX(100%) translateY(100%); }
}

/* Hide watermark after payment */
.result-image-container.paid .watermark-overlay {
    display: none !important;
}

.result-image-container.paid .watermark-text {
    display: none !important;
}

/* Honeypot: Detect and punish users trying to remove watermark */
.watermark-overlay[style*="display: none"],
.watermark-overlay[style*="opacity: 0"],
.watermark-overlay[style*="visibility: hidden"] {
    background-color: rgba(255, 0, 0, 0.8) !important;
    opacity: 0.9 !important;
    display: block !important;
    visibility: visible !important;
    mix-blend-mode: multiply !important;
    background-image: none !important;
    z-index: 999 !important;
}

.watermark-overlay[style*="display: none"]::after,
.watermark-overlay[style*="opacity: 0"]::after,
.watermark-overlay[style*="visibility: hidden"]::after {
    content: 'THEFT DETECTED - Pay $1.99 to remove watermark';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    background: rgba(0,0,0,0.8);
    padding: 10px;
    border-radius: 5px;
    z-index: 1000;
}

/* Watermark text overlay */
.watermark-text {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 11px;
    z-index: 3;
    pointer-events: none;
    user-select: none;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Anti-inspection protection */
.result-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 4;
    pointer-events: none;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header {
        margin-bottom: 15px;
        min-height: 120px;
        padding: 16px;
    }
    
    .header-layout {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    
    .header-left, .header-center, .header-right {
        flex: none;
        width: 100%;
        text-align: center;
    }
    
    .header-left {
        align-items: center;
    }
    
    .header-tagline {
        font-size: 12px;
        max-width: 280px;
        text-align: center;
    }
    
    .header-center {
        justify-content: center;
        order: 2;
    }
    
    .header-right {
        justify-content: center;
        order: 3;
    }
    
    main {
        padding: 15px;
    }
    
    /* Mobile Workflow Layout */
    .workflow-panel {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .workflow-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .suggestion-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .main-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 25px;
    }
    
    .mode-selector-container {
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .right-column {
        padding-top: 0;
    }
    
    .example-chips {
        flex-direction: column;
        gap: 6px;
    }
    
    .example-chip {
        text-align: center;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .step-icon-number {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
        margin-right: 8px;
    }
    
    .drop-zone {
        min-height: 180px;
        padding: 20px 10px;
    }
    
    .processing-steps {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .process-buttons {
        flex-direction: column;
        align-items: center;
        margin-bottom: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        padding: 12px 20px;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .info-section {
        margin-top: 20px;
    }
}

/* Compact Mode Selection Styles */
.mode-selector {
    display: inline-flex;
    background: #374151;
    border-radius: 8px;
    padding: 4px;
    margin: 0;
    border: 1px solid #6b7280;
}

.mode-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #d1d5db;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mode-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.mode-btn.active {
    background: #3b82f6;
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Custom Edit Styles */
.custom-edit-container {
    margin-bottom: 30px;
}

.custom-edit-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.edit-request {
    margin-bottom: 15px;
}

.edit-request label {
    display: block;
    font-weight: 600;
    color: #f3f4f6;
    margin-bottom: 8px;
}

#customEditInput {
    width: 100%;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
}

#customEditInput:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Madlib Form Styles */
.madlib-container {
    margin-bottom: 30px;
}

.madlib-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.form-row label {
    font-weight: 600;
    color: #f3f4f6;
    min-width: 80px;
}

.form-row select,
.form-row input {
    padding: 8px 12px;
    border: 2px solid #6b7280;
    border-radius: 6px;
    font-size: 14px;
    background: #1f2937;
    color: #f3f4f6;
    transition: border-color 0.3s ease;
}

.form-row select:focus,
.form-row input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

#sportSelect,
#poseSelect {
    flex: 1;
    min-width: 150px;
}

#cityInput,
#teamInput {
    flex: 1;
    min-width: 120px;
}

#numberInput {
    width: 80px;
    text-align: center;
}

.preview-text {
    margin-top: 15px;
    padding: 15px;
    background: #1e3a8a;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.preview-text span {
    color: #f3f4f6;
    font-style: italic;
}

.preview-text strong {
    color: #ffffff;
    font-weight: 600;
}

/* Footer Legal Styles */
.footer-content {
    text-align: center;
}

.footer-links {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f3f4f6;
    text-decoration: underline;
}

.footer-separator {
    color: #6b7280;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-row label {
        min-width: auto;
        margin-bottom: 5px;
    }
    
    #cityInput,
    #teamInput {
        min-width: auto;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* Success Page Styles */
.success-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.loading-state,
.success-state,
.error-state {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    color: #333;
}

.processing-spinner {
    font-size: 4rem;
    animation: spin 2s linear infinite;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

.error-icon {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 20px;
}

.error-state h2,
.error-state h3,
.error-state p,
.error-state div {
    color: #333 !important;
}

.error-state .error-message {
    color: #333 !important;
}

.success-actions {
    margin: 30px 0;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.payment-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
    border-left: 4px solid #28a745;
}

.payment-details p {
    margin: 5px 0;
    color: #f3f4f6;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .success-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .success-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Embedded Payment Modal Styles */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.payment-modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    color: #1f2937;
}

.payment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.payment-modal-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.5rem;
}

.payment-summary {
    margin: 20px 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    color: #374151;
    margin-bottom: 10px;
}

.payment-total {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
    color: #1f2937;
    font-size: 1.1rem;
}

.payment-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #9ca3af;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.payment-modal-close:hover {
    background: #f7fafc;
    color: #374151;
}

#payment-element {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8f9fa;
}

.payment-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.payment-errors {
    color: #e53e3e;
    background: #fed7d7;
    border: 1px solid #feb2b2;
    border-radius: 8px;
    padding: 10px;
    margin-top: 15px;
    font-size: 0.9rem;
    display: none;
}

.payment-errors:not(:empty) {
    display: block;
}

@media (max-width: 768px) {
    .payment-modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .payment-modal-header h3 {
        font-size: 1.3rem;
    }
    
    .payment-modal-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .payment-modal-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Enhanced UI Styles */
.step-icon-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 600;
    margin-right: 12px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.example-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.example-chip {
    background: #4b5563;
    border: 1px solid #6b7280;
    color: #f3f4f6;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.example-chip:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: translateY(-1px);
}

.btn-primary-cta {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 1.2rem;
    padding: 18px 36px;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-primary-cta:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.upload-container h2,
.madlib-container h2,
.custom-edit-container h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #f9fafb;
    margin-bottom: 20px;
}

.madlib-form,
.custom-edit-form {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    border: 2px solid #6b7280;
    border-radius: 16px;
    padding: 24px;
}

.drop-zone p {
    margin: 8px 0;
    color: #d1d5db;
    font-size: 1.05rem;
}

.drop-zone p:first-of-type {
    font-weight: 500;
    color: #f3f4f6;
}

/* Feedback Form */
.feedback-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #374151;
}

.feedback-section h4 {
    margin: 0 0 15px 0;
    color: #000000;
    font-size: 16px;
}

.feedback-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #6b7280;
    border-radius: 8px;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    font-size: 14px;
    background: #1f2937;
    color: #f3f4f6;
    box-sizing: border-box;
}

.feedback-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.feedback-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.btn-feedback {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-feedback:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.char-counter {
    font-size: 12px;
    color: #d1d5db;
}

/* Footer Disclaimer */
.footer-disclaimer {
    font-size: 11px;
    color: #94A3B8;
    font-style: italic;
    margin-bottom: 8px;
    text-align: center;
}