/* ===== Remixer Shared Styles ===== */

/* Base Container */
.remaker-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Upload Area */
.upload-area {
    border: 3px dashed #cbd5e0;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    background-color: #f7fafc;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #4299e1;
    background-color: #ebf8ff;
}

.upload-area.has-image {
    border-color: #48bb78;
    background-color: #f0fff4;
    padding: 1rem;
}

/* URL Input Section */
.url-input-divider {
    display: flex;
    align-items: center;
    margin: 0.75rem 0;
    color: #a0aec0;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
}

.url-input-divider::before,
.url-input-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.url-input-divider span {
    padding: 0 0.75rem;
}

.url-input-wrapper {
    display: flex;
    gap: 0.5rem;
}

.url-input-wrapper input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.85rem;
}

.url-input-wrapper input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.btn-load-url {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-load-url:hover {
    opacity: 0.9;
}

.btn-load-url:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.upload-icon {
    font-size: 1rem;
    color: #a0aec0;
    margin-bottom: 1rem;
}

.preview-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.remove-image-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

/* Aspect Ratio Selector */
.aspect-ratio-selector {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.aspect-ratio-option {
    flex: 1;
    min-width: 120px;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.aspect-ratio-option:hover {
    border-color: #4299e1;
    background-color: #ebf8ff;
}

.aspect-ratio-option.selected {
    border-color: #4299e1;
    background-color: #ebf8ff;
}

.aspect-ratio-option input[type="radio"] {
    display: none;
}

.aspect-ratio-label {
    font-weight: 600;
    color: #2d3748;
    display: block;
    margin-bottom: 0.25rem;
}

.aspect-ratio-desc {
    font-size: 0.875rem;
    color: #718096;
}

/* Reimagine Level Slider */
.reimagine-slider-wrapper {
    padding: 0.5rem 0;
}

.reimagine-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, #cbd5e0 0%, #667eea 50%, #764ba2 100%);
    outline: none;
    cursor: pointer;
}

.reimagine-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    border: 3px solid #667eea;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.reimagine-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    transform: scale(1.1);
}

.reimagine-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    border: 3px solid #667eea;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.reimagine-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.reimagine-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #a0aec0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.reimagine-label.active {
    color: #667eea;
}

.reimagine-desc {
    text-align: center;
    font-size: 0.7rem;
    color: #718096;
    margin-top: 0.25rem;
    transition: opacity 0.2s ease;
}

/* Maker-style aspect ratio shape buttons */
.aspect-ratio-options .aspect-ratio-option {
    flex: 0 0 auto;
    min-width: unset;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.aspect-ratio-options .aspect-ratio-option:hover {
    border-color: transparent;
    background: transparent;
}

.aspect-ratio-options .aspect-ratio-option.selected {
    border-color: transparent;
    background: transparent;
}

.aspect-match-input label {
    height: 50px;
    width: 50px;
}

/* Credit Display */
.credit-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

.credit-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.credit-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.credit-breakdown {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.875rem;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    padding: 2rem;
}

.loading-spinner.active {
    display: block;
}

/* Skeleton Loading */
.skeleton {
    position: relative;
    overflow: hidden;
    background-color: #f3f3f3;
    border-radius: 8px;
}

.skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Info Box */
.info-box {
    background: #fff9e6;
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 2rem;
}

.info-box-title {
    font-weight: 600;
    color: #92400e;
    margin-bottom: 0.5rem;
}

.info-box-content {
    color: #78350f;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ===== Split Layout Styles ===== */
.custom-container {
    display: flex;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    width: 100%;
}

.sidebar-container {
    width: 400px;
    min-width: 400px;
    max-width: 400px;
    background-color: #ffffff;
    padding: 24px;
    border-right: 1px solid #f1f5f9;
    box-shadow: 2px 0 10px rgba(0,0,0,0.03);
    overflow-y: auto;
}

.sidebar-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header a:hover {
    text-decoration: underline;
}

.content-container {
    flex-grow: 1;
    padding: 30px;
    overflow-y: auto;
    background-color: #f8fafc;
    min-height: 100vh;
}

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

/* Compact Sidebar Form Styles */
.sidebar-container .form-group {
    margin-bottom: 1.25rem;
}

.sidebar-container .form-label {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.sidebar-container .upload-area {
    min-height: 100px;
    padding: 1rem;
}

.sidebar-container .aspect-ratio-selector {
    gap: 0.5rem;
}

.sidebar-container .aspect-ratio-option {
    font-size: 0.875rem;
}

.sidebar-container .submit-btn {
    font-size: 1rem;
    padding: 0.875rem;
}

/* Form Section Titles with Step Numbers */
.form-section {
    margin-bottom: 1.75rem;
}

.form-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-number {
    background: #929592;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* ===== FAQ Accordion Styles ===== */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.faq-title {
    text-align: center;
    color: #2d3748;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #cbd5e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    padding: 1.25rem 3rem 1.25rem 1.5rem;
    cursor: pointer;
    background: #f7fafc;
    position: relative;
    transition: all 0.2s ease;
    user-select: none;
}

.faq-question:hover {
    background: #edf2f7;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 400;
    color: #667eea;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '-';
    transform: translateY(-50%) rotate(0deg);
}

.faq-item.active .faq-question {
    background: #ebf4ff;
    color: #2c5282;
}

.faq-answer {
    color: #4a5568;
    line-height: 1.7;
    margin: 0;
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

/* ===== Landing Content Typography ===== */
#landingContent {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif !important;
}

.landing-header {
    text-align: center !important;
    margin-bottom: 4rem !important;
    padding: 0 1rem !important;
}

.landing-title {
    font-size: 3.8rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #1a1d0e, #12c194);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: .9;
}

.landing-subtitle {
    font-size: 1.5rem !important;
    font-weight: 500 !important;
    color: #475569 !important;
    margin-bottom: 1.25rem !important;
    letter-spacing: -0.01em !important;
    line-height: 1.4 !important;
}

.landing-description {
    font-size: 1.125rem !important;
    color: #64748b !important;
    max-width: 650px !important;
    margin: 0 auto !important;
    line-height: 1.75 !important;
    letter-spacing: -0.005em !important;
}

.seo-box {
    max-width: 850px !important;
    margin: 0 auto 4rem !important;
    padding: 2rem 2.5rem !important;
    background: linear-gradient(to bottom, #ffffff, #fafbfc) !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 10px 24px rgba(0, 0, 0, 0.03) !important;
    border: 1px solid #f1f5f9 !important;
}

.seo-box p:first-child {
    color: #1e293b !important;
    line-height: 1.8 !important;
    margin-bottom: 1.25rem !important;
    font-size: 1.0625rem !important;
    letter-spacing: -0.005em !important;
}

.seo-box p:last-child {
    color: #475569 !important;
    line-height: 1.8 !important;
    margin: 0 !important;
    font-size: 1rem !important;
}

.seo-box strong {
    font-weight: 600 !important;
    color: #0f172a !important;
}

/* ===== Carousel Before/After Styles ===== */
.comparison-container {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.comparison-item {
    text-align: center;
}

.comparison-image-frame {
    background: white;
    padding: 0.75rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
}

.comparison-image-frame.before {
    border: 2px solid #e2e8f0;
    transform: rotate(-4deg);
}

.comparison-image-frame.after {
    border: 2px solid #667eea;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.15);
    transform: rotate(4deg);
}

.comparison-image-frame img {
    max-width: 300px;
    max-height: 300px;
    border-radius: 8px;
    object-fit: contain;
    display: block;
}

.comparison-image-frame.after img {
    max-width: 400px;
    max-height: 400px;
}

.comparison-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.comparison-badge.before {
    background: #edf2f7;
    color: #4a5568;
}

.comparison-badge.after {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.comparison-arrow {
    font-size: 2.5rem;
    color: #667eea;
    font-weight: bold;
}

/* ===== Saved Brands Grid ===== */
.saved-brands-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.saved-brand-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.saved-brand-chip:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.saved-brand-chip.selected {
    background: #ebf4ff;
    border-color: #667eea;
}

.saved-brand-chip.selected::after {
    content: '✓';
    position: absolute;
    top: -6px;
    right: -6px;
    background: #667eea;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.saved-brand-logo {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

.saved-brand-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: #2d3748;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.saved-brand-chip .no-logo-icon {
    width: 24px;
    height: 24px;
    background: #e2e8f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #a0aec0;
}

/* ===== Brand Card Styles ===== */
.brand-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.brand-item .brand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.brand-item .brand-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: #2d3748;
}

.brand-item .remove-brand-btn {
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 4px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-item .remove-brand-btn:hover {
    background: #c53030;
}

.brand-item .form-control-sm {
    font-size: 0.8rem;
    padding: 0.35rem 0.5rem;
}

.brand-item .form-label-sm {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    color: #4a5568;
}

.brand-item .saved-brand-badge {
    background: #667eea;
    color: white;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    margin-left: 0.5rem;
}

.brand-item .logo-preview-mini {
    max-width: 30px;
    max-height: 30px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    margin-top: 0.25rem;
}

.brand-item .form-check {
    margin-top: 0.5rem;
}

.brand-item .form-check-label {
    font-size: 0.75rem;
    color: #718096;
}

/* ===== Results Card Styles ===== */
#resultsGrid .thumbnail-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#resultsGrid .thumbnail-image {
    position: relative;
}

#resultsGrid .thumbnail-image img {
    width: 100%;
    height: auto;
    display: block;
}

#resultsGrid .carousel-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #667eea;
    color: white;
    font-size: 0.7em;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
}

#resultsGrid .carousel-badge.clean {
    background: #6b7280;
}

#resultsGrid .thumbnail-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #f8fafc;
}

#resultsGrid .thumbnail-actions a,
#resultsGrid .thumbnail-actions button {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 4px;
}

#resultsGrid .thumbnail-actions a:hover,
#resultsGrid .thumbnail-actions button:hover {
    background: #f7fafc;
}

/* Variations Preview (floating dots overlay) */
#resultsGrid .variations-preview {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    z-index: 10;
}

#resultsGrid .variation-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

#resultsGrid .variation-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

#resultsGrid .variation-dot.active {
    background: white;
    border-color: #667eea;
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.6);
}

/* ===== Results Grid Styles ===== */
#resultsGrid {
    display: grid;
    gap: 16px;
}

#resultsGrid .thumbnail-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#resultsGrid .thumbnail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#resultsGrid .thumbnail-image {
    position: relative;
    overflow: hidden;
}

#resultsGrid .thumbnail-image img {
    width: 100%;
    height: 100%;
}

#resultsGrid .thumbnail-actions {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #f8fafc;
    justify-content: center;
}

#resultsGrid .provider-badge {
    position: absolute;
    border-radius: 4px;
    color: white;
    font-weight: 600;
}

/* ===== CTA Button (Landing Page) ===== */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

/* ===== Responsive Mobile ===== */
@media (max-width: 768px) {
    .custom-container {
        flex-direction: column;
    }

    .sidebar-container {
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
        max-height: none;
        padding: 16px;
    }

    .content-container {
        padding: 20px;
        min-height: auto;
    }

    .sidebar-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .landing-title {
        font-size: 2.25rem;
    }

    .landing-subtitle {
        font-size: 1.25rem;
    }

    .landing-description {
        font-size: 1rem;
    }

    .seo-box {
        padding: 1.5rem;
    }

    .comparison-container {
        gap: 1.5rem;
        padding: 1.5rem 0;
    }

    .comparison-arrow {
        font-size: 2rem;
    }
}

/* ===== Landing Page Only Layout ===== */
.landing-only-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ===== Remix Hero Section ===== */
.remix-hero {
    text-align: center;
    padding: 1rem 0;
}

.hero-header {
    margin-bottom: 2rem;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: #64748b;
    margin: 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* ===== Slider Showcase ===== */
.slider-showcase {
    max-width: 480px;
    margin: 0 auto 1.5rem;
}

.slider-showcase .carousel-inner {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* ===== Comparison Slider ===== */
.comparison-slider {
    position: relative;
    width: 100%;
    background: #f1f5f9;
    border-radius: 16px;
    overflow: hidden;
}

.comparison-wrapper {
    position: relative;
    width: 100%;
    height: 480px;
    cursor: ew-resize;
    user-select: none;
    overflow: hidden;
}

.comparison-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.comparison-after {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
    display: block;
}

.comparison-before-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
}

.comparison-before {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: contain;
    object-position: left center;
    position: absolute;
    top: 0;
    left: 0;
}

/* ===== Comparison Handle ===== */
.comparison-handle {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 4px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
    z-index: 10;
}

.handle-line {
    flex: 1;
    width: 3px;
    background: white;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.handle-circle {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    border: 3px solid #667eea;
}

.handle-arrows {
    font-size: 1.25rem;
    color: #667eea;
    font-weight: bold;
    letter-spacing: -2px;
    line-height: 1;
}

/* ===== Comparison Labels ===== */
.comparison-labels {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: white;
    border-top: 1px solid #f1f5f9;
}

.label-before,
.label-after {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.label-before {
    color: #64748b;
}

.label-after {
    color: #667eea;
}

/* ===== Slider Indicators ===== */
.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}

.slider-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #cbd5e0;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-indicators button:hover {
    background: #a0aec0;
}

.slider-indicators button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 20px;
    border-radius: 4px;
}

/* ===== Hero CTA ===== */
.hero-cta {
    margin-top: 1.5rem;
}

.cta-hint {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.cta-hint::before {
    content: '←';
    font-size: 1rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    .slider-showcase {
        max-width: 100%;
        padding: 0 1rem;
    }

    .comparison-wrapper {
        height: 350px;
    }

    .handle-circle {
        width: 36px;
        height: 36px;
    }

    .handle-arrows {
        font-size: 1rem;
    }

    .cta-hint::before {
        content: '↑';
    }
}

/* ===== Recent Creation Section ===== */
#recent-creation-section .thumbnail-cards-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

#recent-creation-section .thumbnail-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
}

#recent-creation-section .thumbnail-image {
    position: relative;
    height: 480px;
    overflow: hidden;
}

#recent-creation-section .thumbnail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

#recent-creation-section .carousel-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #667eea;
    color: white;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
}

#recent-creation-section .carousel-badge.clean {
    background: #6b7280;
}

#recent-creation-section .variations-preview {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    z-index: 10;
}

#recent-creation-section .variation-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

#recent-creation-section .variation-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

#recent-creation-section .variation-dot.active {
    background: white;
    border-color: #667eea;
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.6);
}

#recent-creation-section .thumbnail-actions {
    display: flex;
    justify-content: center;
    padding: 12px;
    background: #f8fafc;
}

/* ===== Manage Brands Button ===== */
.btn-manage-brands {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #667eea;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.btn-manage-brands:hover {
    background: #ebf4ff;
    border-color: #667eea;
}

/* ===== Brand Management Modal ===== */
.brand-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.brand-modal-overlay.active {
    display: flex;
}

.brand-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

.brand-modal-small {
    max-width: 420px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.brand-modal-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.brand-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.brand-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.brand-modal-content {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(80vh - 70px);
}

/* Loading State */
.brand-modal-loading {
    text-align: center;
    padding: 3rem 1rem;
}

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

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

.brand-modal-loading p {
    color: #64748b;
    margin: 0;
}

/* Empty State */
.brand-modal-empty {
    text-align: center;
    padding: 3rem 1rem;
}

.brand-modal-empty .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.brand-modal-empty h3 {
    margin: 0 0 0.5rem;
    color: #2d3748;
    font-size: 1.1rem;
}

.brand-modal-empty p {
    color: #64748b;
    margin: 0;
    font-size: 0.9rem;
}

/* Brand List */
.brand-modal-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.brand-modal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.brand-modal-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e0;
}

.brand-modal-item-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    background: white;
    flex-shrink: 0;
}

.brand-modal-item-logo.no-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    font-size: 1.5rem;
}

.brand-modal-item-info {
    flex: 1;
    min-width: 0;
}

.brand-modal-item-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-modal-item-position {
    font-size: 0.75rem;
    color: #718096;
}

.brand-modal-item-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-brand-edit,
.btn-brand-delete {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-brand-edit {
    background: #ebf4ff;
    color: #667eea;
}

.btn-brand-edit:hover {
    background: #667eea;
    color: white;
}

.btn-brand-delete {
    background: #fef2f2;
    color: #ef4444;
}

.btn-brand-delete:hover {
    background: #ef4444;
    color: white;
}

/* Edit Form Styles */
.brand-edit-field {
    margin-bottom: 1.25rem;
}

.brand-edit-label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.brand-edit-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

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

.brand-edit-logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-edit-logo-preview {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.brand-edit-logo-preview.no-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    font-size: 2rem;
}

.brand-edit-logo-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-change-logo,
.btn-remove-logo {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.btn-change-logo {
    background: white;
    color: #667eea;
    border-color: #667eea;
}

.btn-change-logo:hover {
    background: #667eea;
    color: white;
}

.btn-remove-logo {
    background: white;
    color: #ef4444;
    border-color: #ef4444;
}

.btn-remove-logo:hover {
    background: #ef4444;
    color: white;
}

.brand-edit-actions {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.btn-cancel,
.btn-save {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-cancel {
    background: #f1f5f9;
    color: #64748b;
}

.btn-cancel:hover {
    background: #e2e8f0;
}

.btn-save {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== Multi-Image Preview Grid ===== */
.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
}

.image-preview-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    background: #f7fafc;
}

.image-preview-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-preview-card .remove-preview-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(229, 62, 62, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 5;
    padding: 0;
}

.image-preview-card:hover .remove-preview-btn {
    opacity: 1;
}

.add-more-card {
    aspect-ratio: 1;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f7fafc;
    gap: 2px;
}

.add-more-card:hover {
    border-color: #667eea;
    background: #ebf8ff;
}

.add-more-card .add-icon {
    font-size: 1.5rem;
    color: #a0aec0;
    line-height: 1;
}

.add-more-card .add-text {
    font-size: 0.65rem;
    color: #a0aec0;
    font-weight: 500;
}

.image-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: #ebf4ff;
    color: #667eea;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 8px;
}

/* Multi-image upload area adjustments */
.upload-area.has-images {
    border-color: #48bb78;
    background-color: #f0fff4;
    padding: 10px;
    min-height: auto;
}

.upload-area.has-images .upload-prompt-row {
    display: none;
}

/* ===== Multi-Image Loading Shimmer Cards ===== */
.loading-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.loading-cards-grid .thumbnail-card.is-loading {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.loading-cards-grid .thumbnail-card.is-loading .thumbnail-image {
    aspect-ratio: 16/9;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.loading-progress-text {
    text-align: center;
    color: #718096;
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* ===== Multi-Image Results Grid ===== */
.multi-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
