/**
 * Lukian Dashboard V2 - Light Theme with Gold & Navy
 * 
 * @package Lukian Platform
 * @version 2.0.0
 */

/* =================== CSS VARIABLES =================== */
:root {
    /* Light elegant theme */
    --lk-bg-primary: #f7f8fc;
    --lk-bg-secondary: #ffffff;
    --lk-bg-card: #ffffff;
    --lk-bg-card-hover: #fafbfd;
    --lk-bg-elevated: #f0f2f7;
    --lk-bg-input: #f7f8fc;
    
    /* Borders */
    --lk-border-light: #e8ebf0;
    --lk-border-medium: #dde1e8;
    --lk-border-dark: #c5cad4;
    
    /* Navy dark accents */
    --lk-navy-dark: #0f0f1a;
    --lk-navy-medium: #1A365D;
    --lk-navy-light: #252540;
    --lk-navy-gradient: linear-gradient(135deg, #1a1a2e 0%, #252540 100%);
    
    /* Gold accents */
    --lk-gold-primary: #d4af37;
    --lk-gold-light: #f4d03f;
    --lk-gold-dark: #b8960c;
    --lk-gold-gradient: linear-gradient(135deg, #f4d03f 0%, #d4af37 50%, #b8960c 100%);
    --lk-gold-soft: rgba(212, 175, 55, 0.12);
    --lk-gold-glow: rgba(212, 175, 55, 0.3);
    
    /* Text */
    --lk-text-primary: #1A365D;
    --lk-text-secondary: #4a5068;
    --lk-text-muted: #8b92a5;
    --lk-text-on-dark: #ffffff;
    --lk-text-on-gold: #1a1a2e;
    
    /* Status */
    --lk-success: #10b981;
    --lk-warning: #f59e0b;
    --lk-error: #ef4444;
    
    /* Shadows */
    --lk-shadow-sm: 0 1px 3px rgba(26, 26, 46, 0.04);
    --lk-shadow-md: 0 4px 12px rgba(26, 26, 46, 0.06);
    --lk-shadow-lg: 0 8px 24px rgba(26, 26, 46, 0.08);
    --lk-shadow-xl: 0 20px 40px rgba(26, 26, 46, 0.12);
    --lk-shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);
    --lk-shadow-navy: 0 4px 20px rgba(26, 26, 46, 0.2);
    
    /* Spacing & Radius */
    --lk-radius-sm: 8px;
    --lk-radius-md: 12px;
    --lk-radius-lg: 16px;
    --lk-radius-xl: 24px;
}

/* =================== BASE & RESET =================== */
.lukian-dashboard-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--lk-bg-primary);
    min-height: 100vh;
    padding: 0;
    line-height: 1.6;
    color: var(--lk-text-primary);
}

.lukian-dashboard-wrapper * {
    box-sizing: border-box;
}

/* =================== TOP ACCENT BAR =================== */
.lukian-dashboard-wrapper::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--lk-gold-gradient);
    z-index: 1000;
}

/* =================== MAIN TABS NAVIGATION =================== */
.lukian-main-tabs {
    display: flex;
    gap: 8px;
    padding: 20px 24px;
    background: var(--lk-bg-card);
    border-bottom: 1px solid var(--lk-border-light);
    overflow-x: auto;
    /* Not sticky - scrolls with page */
    box-shadow: var(--lk-shadow-sm);
}

.lukian-main-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--lk-bg-elevated);
    border: 1px solid var(--lk-border-light);
    border-radius: var(--lk-radius-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--lk-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.lukian-main-tab:hover {
    border-color: var(--lk-gold-primary);
    color: var(--lk-text-primary);
    background: var(--lk-gold-soft);
}

.lukian-main-tab.active {
    background: var(--lk-navy-gradient);
    border-color: transparent;
    color: var(--lk-text-on-dark);
    box-shadow: var(--lk-shadow-navy);
}

.lukian-main-tab .tab-icon {
    width: 18px;
    height: 18px;
}

.lukian-main-tab.active .tab-icon {
    color: var(--lk-gold-light);
}

/* Tab content */
.lukian-main-tab-content {
    display: none;
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.lukian-main-tab-content.active {
    display: block;
}

/* =================== STUDIO CONTAINER =================== */
.lukian-studio-v2 {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* =================== CARD BASE =================== */
.lk-card {
    background: var(--lk-bg-card);
    border: 1px solid var(--lk-border-light);
    border-radius: var(--lk-radius-xl);
    box-shadow: var(--lk-shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.lk-card:hover {
    box-shadow: var(--lk-shadow-lg);
    border-color: var(--lk-border-medium);
}

.lk-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--lk-border-light);
    background: var(--lk-bg-elevated);
}

.lk-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--lk-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.lk-card-body {
    padding: 24px;
}

/* =================== CREDITS DISPLAY (TOPBAR) =================== */
.lk-studio-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.lk-credits-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--lk-bg-card);
    border: 1px solid var(--lk-border-light);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: var(--lk-shadow-sm);
}

.lk-credits-icon {
    width: 38px;
    height: 38px;
    background: var(--lk-gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--lk-shadow-gold);
}

.lk-credits-icon svg {
    width: 18px;
    height: 18px;
    color: var(--lk-text-on-gold);
}

.lk-credits-info {
    display: flex;
    flex-direction: column;
}

.lk-credits-value {
    font-weight: 700;
    font-size: 18px;
    color: var(--lk-navy-medium);
    line-height: 1.2;
}

.lk-credits-label {
    font-size: 10px;
    color: var(--lk-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* User actions */
.lk-user-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.lk-user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--lk-navy-gradient);
    color: var(--lk-text-on-dark);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

.lk-user-badge svg {
    width: 16px;
    height: 16px;
    color: var(--lk-gold-light);
}

/* =================== BUTTONS =================== */
.lk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--lk-radius-md);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    line-height: 1.4;
}

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

.lk-btn svg {
    width: 18px;
    height: 18px;
}

/* Primary - Gold */
.lk-btn-primary {
    background: var(--lk-gold-gradient);
    color: var(--lk-text-on-gold);
    border-color: transparent;
    box-shadow: var(--lk-shadow-gold);
}

.lk-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--lk-gold-glow);
}

/* Secondary - Navy */
.lk-btn-secondary {
    background: var(--lk-navy-gradient);
    color: var(--lk-text-on-dark);
    box-shadow: var(--lk-shadow-navy);
}

.lk-btn-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--lk-shadow-lg);
}

/* Outline */
.lk-btn-outline {
    background: var(--lk-bg-elevated);
    color: var(--lk-text-primary);
    border-color: var(--lk-border-light);
}

.lk-btn-outline:hover:not(:disabled) {
    border-color: var(--lk-gold-primary);
    background: var(--lk-gold-soft);
}

/* Ghost */
.lk-btn-ghost {
    background: transparent;
    color: var(--lk-text-secondary);
    padding: 8px 12px;
}

.lk-btn-ghost:hover:not(:disabled) {
    background: var(--lk-bg-elevated);
    color: var(--lk-text-primary);
}

/* Sizes */
.lk-btn-sm {
    padding: 8px 14px;
    font-size: 13px;
}

.lk-btn-lg {
    padding: 16px 28px;
    font-size: 16px;
}

.lk-btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
}

/* =================== UPLOAD ZONE =================== */
.lk-upload-zone {
    min-height: 400px;
    border: 2px dashed var(--lk-border-dark);
    border-radius: var(--lk-radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: var(--lk-bg-card);
    padding: 40px;
}

.lk-upload-zone:hover {
    border-color: var(--lk-gold-primary);
    background: var(--lk-gold-soft);
}

.lk-upload-zone.dragover {
    border-color: var(--lk-gold-primary);
    background: var(--lk-gold-soft);
    box-shadow: inset 0 0 40px rgba(212, 175, 55, 0.1);
}

/* Compact mode - when files are in queue */
.lk-upload-zone.compact,
.lustro-studio-upload.lustro-dropzone-compact {
    min-height: auto !important;
    padding: 16px 24px !important;
    flex-direction: row !important;
    gap: 16px;
    justify-content: flex-start;
}

.lk-upload-zone.compact .lk-upload-visual,
.lustro-dropzone-compact .lk-upload-visual {
    margin-bottom: 0 !important;
}

.lk-upload-zone.compact .lk-upload-icon-wrapper,
.lustro-dropzone-compact .lk-upload-icon-wrapper {
    width: 50px !important;
    height: 50px !important;
    flex-shrink: 0;
}

.lk-upload-zone.compact .lk-upload-icon-wrapper svg,
.lustro-dropzone-compact .lk-upload-icon-wrapper svg,
.lustro-dropzone-compact .lk-upload-icon-wrapper i {
    width: 24px !important;
    height: 24px !important;
}

.lk-upload-zone.compact .lk-upload-text h3,
.lustro-dropzone-compact .lk-upload-text h3 {
    font-size: 14px !important;
    margin: 0 !important;
}

.lk-upload-zone.compact .lk-upload-text p,
.lk-upload-zone.compact .lk-upload-hints,
.lk-upload-zone.compact .lk-upload-ring,
.lustro-dropzone-compact .lk-upload-text p,
.lustro-dropzone-compact .lk-upload-hints,
.lustro-dropzone-compact .lk-upload-ring {
    display: none !important;
}

.lk-upload-zone.compact .lk-btn,
.lustro-dropzone-compact .lk-btn,
.lustro-dropzone-compact .lustro-btn {
    padding: 8px 16px !important;
    font-size: 13px !important;
    margin-top: 0 !important;
}

/* Hide old browse button in compact mode, show new compact one */
.lk-upload-zone.compact #lustro-browse-btn,
.lustro-dropzone-compact #lustro-browse-btn {
    margin-top: 0 !important;
    margin-left: auto;
}

/* Upload visual */
.lk-upload-visual {
    position: relative;
    margin-bottom: 28px;
}

.lk-upload-icon-wrapper {
    width: 100px;
    height: 100px;
    background: var(--lk-gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lk-float 4s ease-in-out infinite;
    box-shadow: var(--lk-shadow-gold);
}

.lk-upload-icon-wrapper svg {
    width: 40px;
    height: 40px;
    color: var(--lk-text-on-gold);
}

@keyframes lk-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.lk-upload-ring {
    position: absolute;
    inset: -15px;
    border: 2px solid var(--lk-gold-primary);
    border-radius: 50%;
    opacity: 0.4;
    animation: lk-ring-expand 2.5s ease-out infinite;
}

.lk-upload-ring:nth-child(2) {
    animation-delay: 0.8s;
}

@keyframes lk-ring-expand {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.5); opacity: 0; }
}

.lk-upload-text {
    text-align: center;
}

.lk-upload-text h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--lk-text-primary);
}

.lk-upload-text p {
    color: var(--lk-text-muted);
    font-size: 14px;
    margin: 0;
}

.lk-upload-hints {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.lk-hint-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--lk-text-secondary);
    background: var(--lk-bg-elevated);
    border: 1px solid var(--lk-border-light);
    padding: 8px 14px;
    border-radius: 50px;
}

.lk-hint-badge svg {
    width: 14px;
    height: 14px;
    color: var(--lk-gold-dark);
}

/* =================== IMAGE QUEUE =================== */
.lk-queue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.lk-queue-item,
.lustro-queue-item {
    position: relative;
    border-radius: var(--lk-radius-md);
    overflow: hidden;
    background: var(--lk-bg-elevated);
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.lk-queue-item:hover,
.lustro-queue-item:hover {
    border-color: var(--lk-gold-primary);
    box-shadow: var(--lk-shadow-md);
}

.lk-queue-item.selected,
.lustro-queue-item.selected {
    border-color: var(--lk-gold-primary);
    box-shadow: 0 0 0 3px var(--lk-gold-soft);
}

.lk-queue-thumb,
.lustro-queue-thumb {
    aspect-ratio: 4/3;
    overflow: hidden;
    min-height: 200px;
}

.lk-queue-thumb img,
.lustro-queue-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lk-queue-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.lk-queue-checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--lk-gold-primary);
}

.lk-queue-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s;
    z-index: 2;
}

.lk-queue-item:hover .lk-queue-remove {
    opacity: 1;
}

.lk-queue-remove:hover {
    background: var(--lk-error);
}

.lk-queue-name {
    padding: 10px 12px;
    font-size: 12px;
    color: var(--lk-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: var(--lk-bg-card);
}

/* Processing overlay */
.lk-processing-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 3;
}

.lk-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: var(--lk-gold-light);
    border-radius: 50%;
    animation: lk-spin 1s linear infinite;
}

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

.lk-processing-text {
    color: white;
    font-size: 12px;
    font-weight: 600;
}

/* =================== ENHANCEMENT OPTIONS =================== */
.lk-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.lk-section-icon {
    width: 44px;
    height: 44px;
    background: var(--lk-gold-gradient);
    border-radius: var(--lk-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--lk-shadow-gold);
}

.lk-section-icon svg {
    width: 22px;
    height: 22px;
    color: var(--lk-text-on-gold);
}

.lk-section-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--lk-text-primary);
    margin: 0 0 4px;
}

.lk-section-info p {
    font-size: 12px;
    color: var(--lk-text-muted);
    margin: 0;
}

/* Accordion */
.lk-accordion {
    border: 1px solid var(--lk-border-light);
    border-radius: var(--lk-radius-md);
    margin-bottom: 12px;
    overflow: hidden;
}

.lk-accordion-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px 20px;
    background: var(--lk-bg-elevated);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.lk-accordion-header:hover {
    background: var(--lk-bg-card-hover);
}

.lk-accordion-header.active {
    background: var(--lk-gold-soft);
    border-bottom: 1px solid var(--lk-border-light);
}

.lk-accordion-icon {
    width: 36px;
    height: 36px;
    background: var(--lk-bg-card);
    border: 1px solid var(--lk-border-light);
    border-radius: var(--lk-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.lk-accordion-header.active .lk-accordion-icon {
    background: var(--lk-gold-gradient);
    border-color: transparent;
}

.lk-accordion-icon svg {
    width: 20px;
    height: 20px;
    color: var(--lk-gold-dark);
}

.lk-accordion-header.active .lk-accordion-icon svg {
    color: var(--lk-text-on-gold);
}

.lk-accordion-title {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--lk-text-primary);
}

.lk-accordion-arrow {
    width: 20px;
    height: 20px;
    color: var(--lk-text-muted);
    transition: transform 0.2s;
}

.lk-accordion-header.active .lk-accordion-arrow {
    transform: rotate(180deg);
}

.lk-accordion-content {
    display: none;
    padding: 20px;
    background: var(--lk-bg-card);
}

.lk-accordion-content.active {
    display: block;
}

/* Enhancement Grid */
.lk-enhancement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.lk-enhancement-card {
    position: relative;
    cursor: pointer;
}

.lk-enhancement-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.lk-enhancement-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: var(--lk-bg-elevated);
    border: 2px solid var(--lk-border-light);
    border-radius: var(--lk-radius-md);
    transition: all 0.2s ease;
    text-align: center;
}

.lk-enhancement-card:hover .lk-enhancement-content {
    border-color: var(--lk-gold-primary);
    transform: translateY(-2px);
    box-shadow: var(--lk-shadow-md);
}

.lk-enhancement-card input:checked + .lk-enhancement-content {
    background: var(--lk-gold-soft);
    border-color: var(--lk-gold-primary);
    box-shadow: 0 0 0 3px var(--lk-gold-soft);
}

.lk-enhancement-icon {
    width: 44px;
    height: 44px;
    background: var(--lk-bg-card);
    border: 1px solid var(--lk-border-light);
    border-radius: var(--lk-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.lk-enhancement-card:hover .lk-enhancement-icon,
.lk-enhancement-card input:checked + .lk-enhancement-content .lk-enhancement-icon {
    background: var(--lk-gold-gradient);
    border-color: transparent;
}

.lk-enhancement-icon svg {
    width: 22px;
    height: 22px;
    color: var(--lk-gold-dark);
}

.lk-enhancement-card:hover .lk-enhancement-icon svg,
.lk-enhancement-card input:checked + .lk-enhancement-content .lk-enhancement-icon svg {
    color: var(--lk-text-on-gold);
}

.lk-enhancement-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--lk-text-secondary);
}

.lk-enhancement-card input:checked + .lk-enhancement-content .lk-enhancement-label {
    color: var(--lk-navy-medium);
}

/* =================== CUSTOM PROMPT =================== */
.lk-custom-prompt-wrapper {
    background: var(--lk-bg-elevated);
    border-radius: var(--lk-radius-md);
    padding: 20px;
    margin-top: 16px;
    border: 2px solid var(--lk-border-light);
    transition: border-color 0.3s ease;
}

.lk-custom-prompt-wrapper:focus-within {
    border-color: var(--lk-gold-primary);
}

.lk-custom-textarea {
    width: 100%;
    min-height: 100px;
    padding: 14px;
    background: var(--lk-bg-card);
    border: 1px solid var(--lk-border-light);
    border-radius: var(--lk-radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--lk-text-primary);
    resize: vertical;
    transition: all 0.2s;
}

.lk-custom-textarea:focus {
    outline: none;
    border-color: var(--lk-gold-primary);
    box-shadow: 0 0 0 3px var(--lk-gold-soft);
}

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

.lk-prompt-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.lk-char-count {
    font-size: 12px;
    color: var(--lk-text-muted);
    padding: 4px 8px;
    background: var(--lk-bg-card);
    border-radius: 4px;
}

.lk-prompt-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lk-preset-btn {
    padding: 8px 14px;
    font-size: 12px;
    background: var(--lk-bg-card);
    border: 1px solid var(--lk-border-light);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--lk-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.lk-preset-btn svg {
    width: 14px;
    height: 14px;
    color: var(--lk-gold-dark);
}

.lk-preset-btn:hover {
    background: var(--lk-navy-gradient);
    border-color: transparent;
    color: var(--lk-text-on-dark);
}

.lk-preset-btn:hover svg {
    color: var(--lk-gold-light);
}

/* =================== GENERATE BUTTON =================== */
.lk-generate-section {
    padding: 24px;
    background: var(--lk-bg-elevated);
    border-top: 1px solid var(--lk-border-light);
}

.lk-generate-btn {
    width: 100%;
    padding: 18px 28px;
    background: var(--lk-gold-gradient);
    border: none;
    border-radius: var(--lk-radius-lg);
    color: var(--lk-text-on-gold);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--lk-shadow-gold);
}

.lk-generate-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.lk-generate-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px var(--lk-gold-glow);
}

.lk-generate-btn:hover:not(:disabled)::before {
    transform: translateX(100%);
}

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

.lk-generate-btn svg {
    width: 22px;
    height: 22px;
}

.lk-btn-cost {
    background: rgba(26, 26, 46, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lk-btn-cost svg {
    width: 14px;
    height: 14px;
}

/* =================== RESULTS =================== */
.lk-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.lk-result-item {
    border-radius: var(--lk-radius-lg);
    overflow: hidden;
    background: var(--lk-bg-card);
    border: 1px solid var(--lk-border-light);
    box-shadow: var(--lk-shadow-md);
}

.lk-result-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.lk-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lk-result-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--lk-navy-medium);
    color: var(--lk-text-on-dark);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.lk-result-actions {
    display: flex;
    gap: 8px;
    padding: 16px;
    background: var(--lk-bg-elevated);
}

.lk-result-actions .lk-btn {
    flex: 1;
}

/* =================== HISTORY =================== */
.lk-history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.lk-history-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--lk-radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--lk-shadow-md);
}

.lk-history-item:hover {
    transform: scale(1.03);
    box-shadow: var(--lk-shadow-xl);
}

.lk-history-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lk-history-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.95) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
}

.lk-history-item:hover .lk-history-overlay {
    opacity: 1;
}

.lk-history-type {
    font-size: 12px;
    font-weight: 600;
    color: var(--lk-gold-light);
}

.lk-history-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.lk-history-date svg {
    width: 12px;
    height: 12px;
}

/* =================== FEEDBACK SECTION =================== */
.lk-feedback-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lk-form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lk-form-row label {
    font-size: 13px;
    font-weight: 600;
    color: var(--lk-text-secondary);
}

.lk-input,
.lk-select,
.lk-textarea {
    padding: 12px 14px;
    background: var(--lk-bg-input);
    border: 1px solid var(--lk-border-light);
    border-radius: var(--lk-radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--lk-text-primary);
    transition: all 0.2s;
}

.lk-input:focus,
.lk-select:focus,
.lk-textarea:focus {
    outline: none;
    border-color: var(--lk-gold-primary);
    box-shadow: 0 0 0 3px var(--lk-gold-soft);
}

.lk-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--lk-text-secondary);
}

.lk-checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--lk-gold-primary);
}

/* =================== TRIAL BANNER =================== */
.lk-trial-banner {
    background: var(--lk-navy-gradient);
    border-radius: var(--lk-radius-lg);
    padding: 20px 24px;
    margin-bottom: 24px;
}

.lk-trial-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.lk-trial-text {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--lk-text-on-dark);
}

.lk-trial-icon {
    width: 40px;
    height: 40px;
    background: var(--lk-gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lk-trial-icon svg {
    width: 20px;
    height: 20px;
    color: var(--lk-text-on-gold);
}

.lk-trial-text span {
    font-size: 14px;
}

.lk-trial-text strong {
    color: var(--lk-gold-light);
}

/* =================== TOAST NOTIFICATIONS =================== */
.lk-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    background: var(--lk-navy-medium);
    color: white;
    border-radius: var(--lk-radius-md);
    box-shadow: var(--lk-shadow-xl);
    z-index: 999999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lk-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.lk-toast.success {
    background: var(--lk-success);
}

.lk-toast.error {
    background: var(--lk-error);
}

.lk-toast.warning {
    background: var(--lk-warning);
}

.lk-toast svg {
    width: 20px;
    height: 20px;
}

/* =================== SELECT ALL ROW =================== */
.lk-select-all-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--lk-bg-elevated);
    border-radius: var(--lk-radius-sm);
    margin-bottom: 16px;
}

.lk-select-all-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--lk-text-secondary);
}

.lk-select-all-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--lk-gold-primary);
}

/* =================== STATUS DOT =================== */
.lk-status-dot {
    width: 8px;
    height: 8px;
    background: var(--lk-gold-primary);
    border-radius: 50%;
    animation: lk-pulse-dot 2s ease-in-out infinite;
    box-shadow: 0 0 8px var(--lk-gold-glow);
}

@keyframes lk-pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* =================== RESPONSIVE =================== */
@media (max-width: 1024px) {
    .lukian-main-tabs {
        padding: 16px;
    }
    
    .lukian-main-tab {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .lukian-main-tab-content {
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .lukian-main-tabs {
        gap: 6px;
    }
    
    .lukian-main-tab {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .lk-studio-topbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .lk-credits-badge {
        justify-content: center;
    }
    
    .lk-user-actions {
        justify-content: center;
    }
    
    .lk-enhancement-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .lk-results-grid {
        grid-template-columns: 1fr;
    }
    
    .lk-history-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lk-upload-hints {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .lukian-main-tab span:not(.tab-icon) {
        display: none;
    }
    
    .lukian-main-tab {
        padding: 12px;
    }
    
    .lk-enhancement-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lk-queue-grid {
        grid-template-columns: 1fr;
    }
    
    .lk-trial-content {
        flex-direction: column;
        text-align: center;
    }
    
    .lk-toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}

/* =================== SCROLLBAR =================== */
.lukian-dashboard-wrapper ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.lukian-dashboard-wrapper ::-webkit-scrollbar-track {
    background: var(--lk-bg-elevated);
}

.lukian-dashboard-wrapper ::-webkit-scrollbar-thumb {
    background: var(--lk-border-dark);
    border-radius: 3px;
}

.lukian-dashboard-wrapper ::-webkit-scrollbar-thumb:hover {
    background: var(--lk-gold-dark);
}

/* =================== OVERRIDES FOR OLD STYLES =================== */
/* These ensure new design takes priority over old studio.css */

.lukian-dashboard-wrapper .lk-card {
    background: var(--lk-bg-card) !important;
    border: 1px solid var(--lk-border-light) !important;
    border-radius: var(--lk-radius-xl) !important;
}

.lukian-dashboard-wrapper .lk-upload-zone {
    border: 2px dashed var(--lk-border-dark) !important;
    background: var(--lk-bg-card) !important;
}

.lukian-dashboard-wrapper .lk-upload-zone:hover,
.lukian-dashboard-wrapper .lk-upload-zone.dragover {
    border-color: var(--lk-gold-primary) !important;
    background: var(--lk-gold-soft) !important;
}

.lukian-dashboard-wrapper .lk-btn-primary {
    background: var(--lk-gold-gradient) !important;
    color: var(--lk-text-on-gold) !important;
}

.lukian-dashboard-wrapper .lk-btn-secondary {
    background: var(--lk-navy-gradient) !important;
    color: var(--lk-text-on-dark) !important;
}

.lukian-dashboard-wrapper .lk-generate-btn {
    background: var(--lk-gold-gradient) !important;
}

.lukian-dashboard-wrapper .lk-enhancement-card input:checked + .lk-enhancement-content {
    background: var(--lk-gold-soft) !important;
    border-color: var(--lk-gold-primary) !important;
}

.lukian-dashboard-wrapper .lk-accordion-header.active {
    background: var(--lk-gold-soft) !important;
}

.lukian-dashboard-wrapper .lk-accordion-header.active .lk-accordion-icon {
    background: var(--lk-gold-gradient) !important;
}

/* Fix icon sizes in buttons */
.lukian-dashboard-wrapper .lk-btn svg,
.lukian-dashboard-wrapper .lk-btn i {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
}

/* Fix tab icons */
.lukian-main-tab .tab-icon,
.lukian-main-tab i[data-lucide] {
    width: 18px !important;
    height: 18px !important;
}

/* Hide old emoji icons */
.lukian-dashboard-wrapper .lustro-card-icon:not(.lk-enhancement-icon),
.lukian-dashboard-wrapper .lustro-upload-icon:not(.lk-upload-icon-wrapper) {
    display: none !important;
}

/* Accordion arrows */
.lk-accordion-arrow {
    transition: transform 0.2s ease;
}

.lk-accordion-header.active .lk-accordion-arrow {
    transform: rotate(180deg);
}

/* =================== ADDITIONAL FIXES =================== */

/* Gold theme overrides for studio gallery */
.lukian-dashboard-wrapper .lustro-item-id {
    color: var(--lk-gold-primary) !important;
}

.lukian-dashboard-wrapper .lustro-progress-fill {
    background: linear-gradient(90deg, var(--lk-gold-primary), var(--lk-gold-light)) !important;
}

.lukian-dashboard-wrapper .lustro-processing-overlay {
    background: rgba(26, 54, 93, 0.92) !important; /* Dark navy blue */
}

.lukian-dashboard-wrapper .lustro-spinner {
    border-color: rgba(201, 162, 39, 0.3) !important;
    border-top-color: var(--lk-gold-primary) !important;
}

.lukian-dashboard-wrapper .lustro-percent {
    color: var(--lk-gold-light) !important;
}

.lukian-dashboard-wrapper .lustro-cancel-btn {
    background: rgba(201, 162, 39, 0.2) !important;
    color: var(--lk-gold-light) !important;
    border-color: rgba(201, 162, 39, 0.5) !important;
}

.lukian-dashboard-wrapper .lustro-cancel-btn:hover {
    background: rgba(201, 162, 39, 0.3) !important;
}

/* Download button gold theme */
.lukian-dashboard-wrapper .lustro-download-btn {
    background: var(--lk-gold-primary) !important;
    color: white !important;
}

.lukian-dashboard-wrapper .lustro-download-btn:hover {
    background: var(--lk-gold-dark) !important;
}

/* Old studio CSS overrides for queue items */
.lukian-dashboard-wrapper .lustro-queue-items {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 20px !important;
}

.lukian-dashboard-wrapper .lustro-queue-thumb {
    min-height: 200px !important;
}

/* Make upload zone clickable */
.lk-upload-zone,
.lustro-studio-upload {
    cursor: pointer;
}

/* Ensure Lucide icons in buttons display properly */
.lukian-dashboard-wrapper [data-lucide] {
    display: inline-block;
    vertical-align: middle;
}

/* Fix for old accordion classes - apply new styles */
.lukian-dashboard-wrapper .lukian-accordion {
    border: 1px solid var(--lk-border-light) !important;
    border-radius: var(--lk-radius-md) !important;
    margin-bottom: 12px !important;
    overflow: hidden !important;
}

.lukian-dashboard-wrapper .lukian-accordion-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 16px 20px !important;
    background: var(--lk-bg-elevated) !important;
    border: none !important;
    cursor: pointer !important;
    text-align: left !important;
}

.lukian-dashboard-wrapper .lukian-accordion-header.active {
    background: var(--lk-gold-soft) !important;
    border-bottom: 1px solid var(--lk-border-light) !important;
}

.lukian-dashboard-wrapper .lukian-accordion-icon {
    width: 36px !important;
    height: 36px !important;
    background: var(--lk-bg-card) !important;
    border: 1px solid var(--lk-border-light) !important;
    border-radius: var(--lk-radius-sm) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
}

.lukian-dashboard-wrapper .lukian-accordion-header.active .lukian-accordion-icon {
    background: var(--lk-gold-gradient) !important;
    border-color: transparent !important;
}

.lukian-dashboard-wrapper .lukian-accordion-title {
    flex: 1 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--lk-text-primary) !important;
}

.lukian-dashboard-wrapper .lukian-accordion-arrow {
    font-size: 12px !important;
    color: var(--lk-text-muted) !important;
    transition: transform 0.2s !important;
}

.lukian-dashboard-wrapper .lukian-accordion-header.active .lukian-accordion-arrow {
    transform: rotate(180deg) !important;
}

.lukian-dashboard-wrapper .lukian-accordion-content {
    display: none !important;
    padding: 20px !important;
    background: var(--lk-bg-card) !important;
}

.lukian-dashboard-wrapper .lukian-accordion-content.active {
    display: block !important;
}

/* Old enhancement grid with new styling */
.lukian-dashboard-wrapper .lustro-enhancement-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
    gap: 12px !important;
}

.lukian-dashboard-wrapper .lustro-enhancement-card {
    position: relative !important;
    cursor: pointer !important;
}

.lukian-dashboard-wrapper .lustro-card-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 16px 12px !important;
    background: var(--lk-bg-elevated) !important;
    border: 2px solid var(--lk-border-light) !important;
    border-radius: var(--lk-radius-md) !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
}

.lukian-dashboard-wrapper .lustro-enhancement-card:hover .lustro-card-content {
    border-color: var(--lk-gold-primary) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--lk-shadow-md) !important;
}

.lukian-dashboard-wrapper .lustro-enhancement-card input:checked + .lustro-card-content {
    background: var(--lk-gold-soft) !important;
    border-color: var(--lk-gold-primary) !important;
    box-shadow: 0 0 0 3px var(--lk-gold-soft) !important;
}

.lukian-dashboard-wrapper .lustro-card-icon {
    width: 44px !important;
    height: 44px !important;
    background: var(--lk-bg-card) !important;
    border: 1px solid var(--lk-border-light) !important;
    border-radius: var(--lk-radius-sm) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
}

.lukian-dashboard-wrapper .lustro-enhancement-card:hover .lustro-card-icon,
.lukian-dashboard-wrapper .lustro-enhancement-card input:checked + .lustro-card-content .lustro-card-icon {
    background: var(--lk-gold-gradient) !important;
    border-color: transparent !important;
}

.lukian-dashboard-wrapper .lustro-card-title {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--lk-text-secondary) !important;
}

.lukian-dashboard-wrapper .lustro-enhancement-card input:checked + .lustro-card-content .lustro-card-title {
    color: var(--lk-navy-medium) !important;
}

/* Responsive fixes for queue */
@media (max-width: 768px) {
    .lukian-dashboard-wrapper .lustro-queue-items,
    .lukian-dashboard-wrapper .lk-queue-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .lukian-dashboard-wrapper .lustro-queue-thumb,
    .lukian-dashboard-wrapper .lk-queue-thumb {
        min-height: 140px !important;
    }
}

@media (max-width: 480px) {
    .lukian-dashboard-wrapper .lustro-queue-items,
    .lukian-dashboard-wrapper .lk-queue-grid {
        grid-template-columns: 1fr !important;
    }
    
    .lukian-dashboard-wrapper .lustro-queue-thumb,
    .lukian-dashboard-wrapper .lk-queue-thumb {
        min-height: 180px !important;
    }
}

/* =================== UPLOAD ZONE COMPACT MODE =================== */
/* When images are in queue, upload zone becomes compact */
.lk-upload-card.compact .lk-upload-body {
    padding: 16px;
}

.lk-upload-card.compact .lk-upload-zone {
    min-height: auto !important;
    padding: 20px !important;
    flex-direction: row !important;
    gap: 20px;
    cursor: pointer;
}

.lk-upload-card.compact .lk-upload-visual {
    margin-bottom: 0 !important;
}

.lk-upload-card.compact .lk-upload-icon-wrapper {
    width: 50px !important;
    height: 50px !important;
}

.lk-upload-card.compact .lk-upload-icon-wrapper svg,
.lk-upload-card.compact .lk-upload-icon-wrapper i {
    width: 24px !important;
    height: 24px !important;
}

.lk-upload-card.compact .lk-upload-ring {
    display: none;
}

.lk-upload-card.compact .lk-upload-text h3 {
    font-size: 16px !important;
    margin-bottom: 4px !important;
}

.lk-upload-card.compact .lk-upload-text p,
.lk-upload-card.compact .lk-upload-hints {
    display: none !important;
}

.lk-upload-card.compact #lustro-browse-btn {
    margin-top: 0 !important;
    padding: 10px 16px !important;
}

/* =================== LARGER QUEUE IMAGES =================== */
.lk-queue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 20px !important;
}

.lk-queue-item {
    border-radius: var(--lk-radius-lg) !important;
}

.lk-queue-thumb {
    aspect-ratio: 4/3 !important;
    min-height: 200px;
}

.lk-queue-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lk-queue-name {
    padding: 12px 16px !important;
    font-size: 13px !important;
    font-weight: 500;
}

/* Processing overlay improvements */
.lk-queue-item .lk-processing-overlay,
.lk-queue-item .lustro-processing-overlay {
    background: rgba(26, 26, 46, 0.85) !important;
}

.lk-queue-item .lk-spinner,
.lk-queue-item .lustro-spinner {
    width: 40px !important;
    height: 40px !important;
    border-width: 3px !important;
}

/* =================== CLICKABLE UPLOAD ZONE =================== */
.lk-upload-zone {
    cursor: pointer !important;
}

.lk-upload-zone * {
    pointer-events: none;
}

.lk-upload-zone button,
.lk-upload-zone a {
    pointer-events: auto;
}

/* =================== RESPONSIVE QUEUE IMAGES =================== */
@media (max-width: 768px) {
    .lk-queue-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    }
    
    .lk-queue-thumb {
        min-height: 150px;
    }
}

@media (max-width: 480px) {
    .lk-queue-grid {
        grid-template-columns: 1fr !important;
    }
    
    .lk-queue-thumb {
        min-height: 180px;
    }
    
    .lk-upload-card.compact .lk-upload-zone {
        flex-direction: column !important;
        text-align: center;
    }
}

/* =================== VIRTUAL STAGING V2 =================== */
.lk-staging-editor {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Staging Editor Grid - 2 columns */
.lk-staging-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    min-height: 600px;
}

@media (max-width: 1024px) {
    .lk-staging-grid {
        grid-template-columns: 1fr;
    }
}

/* Preview Panel */
.lk-staging-preview-panel {
    background: var(--lk-bg-card);
    border: 1px solid var(--lk-border-light);
    border-radius: var(--lk-radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--lk-shadow-md);
}

.lk-staging-preview-header {
    padding: 16px 20px;
    background: var(--lk-bg-elevated);
    border-bottom: 1px solid var(--lk-border-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.lk-staging-preview-header .lk-status-dot {
    width: 8px;
    height: 8px;
}

.lk-staging-preview-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--lk-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Upload Area */
.lk-staging-upload {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 400px;
}

.lk-staging-upload:hover {
    background: var(--lk-gold-soft);
}

.lk-staging-upload-icon {
    width: 100px;
    height: 100px;
    background: var(--lk-gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: var(--lk-shadow-gold);
    animation: lk-float 4s ease-in-out infinite;
}

.lk-staging-upload-icon svg {
    width: 44px;
    height: 44px;
    color: var(--lk-text-on-gold);
}

.lk-staging-upload-text h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--lk-text-primary);
    margin-bottom: 8px;
    text-align: center;
}

.lk-staging-upload-text p {
    color: var(--lk-text-muted);
    font-size: 14px;
    text-align: center;
}

.lk-staging-upload-hint {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

/* Preview Area */
.lk-staging-preview-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.lk-staging-main-preview {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lk-bg-elevated);
    border-radius: var(--lk-radius-lg);
    overflow: hidden;
    cursor: zoom-in;
}

.lk-staging-main-preview img {
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
    border-radius: var(--lk-radius-md);
}

.lk-staging-preview-badge {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--lk-navy-medium);
    color: var(--lk-text-on-dark);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lk-staging-preview-badge svg {
    width: 14px;
    height: 14px;
    color: var(--lk-gold-light);
}

/* Navigation Buttons */
.lk-staging-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(26, 26, 46, 0.8);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.lk-staging-nav-btn:hover {
    background: var(--lk-gold-gradient);
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
}

.lk-staging-nav-btn.prev { left: 16px; }
.lk-staging-nav-btn.next { right: 16px; }

.lk-staging-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.lk-staging-nav-btn svg {
    width: 20px;
    height: 20px;
}

/* Thumbnails */
.lk-staging-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding: 12px;
    background: var(--lk-bg-elevated);
    border-radius: var(--lk-radius-md);
    overflow-x: auto;
}

.lk-staging-thumb {
    width: 80px;
    height: 60px;
    border-radius: var(--lk-radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.lk-staging-thumb:hover {
    border-color: var(--lk-gold-primary);
}

.lk-staging-thumb.active {
    border-color: var(--lk-gold-primary);
    box-shadow: 0 0 0 3px var(--lk-gold-soft);
}

.lk-staging-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Processing Overlay */
.lk-staging-processing {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 20;
    border-radius: var(--lk-radius-lg);
}

.lk-staging-processing .lk-spinner {
    width: 50px;
    height: 50px;
    border-width: 4px;
}

.lk-staging-processing-text {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.lk-staging-processing-hint {
    color: var(--lk-gold-light);
    font-size: 13px;
}

/* Controls Panel */
.lk-staging-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lk-staging-controls .lk-card {
    overflow: visible;
}

/* Mode Toggle */
.lk-staging-mode-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: var(--lk-bg-elevated);
    padding: 6px;
    border-radius: var(--lk-radius-md);
    border: 1px solid var(--lk-border-light);
}

.lk-staging-mode-btn {
    padding: 14px;
    background: transparent;
    border: none;
    border-radius: var(--lk-radius-sm);
    color: var(--lk-text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lk-staging-mode-btn:hover {
    color: var(--lk-text-primary);
    background: var(--lk-bg-card);
}

.lk-staging-mode-btn.active {
    background: var(--lk-navy-gradient);
    color: var(--lk-text-on-dark);
    box-shadow: var(--lk-shadow-navy);
}

.lk-staging-mode-btn svg {
    width: 18px;
    height: 18px;
}

.lk-staging-mode-btn.active svg {
    color: var(--lk-gold-light);
}

/* Room Type Grid */
.lk-staging-room-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.lk-staging-room-card {
    background: var(--lk-bg-elevated);
    border: 1px solid var(--lk-border-light);
    border-radius: var(--lk-radius-md);
    padding: 14px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.lk-staging-room-card:hover {
    border-color: var(--lk-gold-primary);
    transform: translateY(-2px);
    box-shadow: var(--lk-shadow-md);
}

.lk-staging-room-card.active {
    background: var(--lk-gold-soft);
    border-color: var(--lk-gold-primary);
    box-shadow: 0 0 0 3px var(--lk-gold-soft);
}

.lk-staging-room-icon {
    width: 44px;
    height: 44px;
    background: var(--lk-bg-card);
    border: 1px solid var(--lk-border-light);
    border-radius: var(--lk-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    transition: all 0.2s;
}

.lk-staging-room-card:hover .lk-staging-room-icon,
.lk-staging-room-card.active .lk-staging-room-icon {
    background: var(--lk-gold-gradient);
    border-color: transparent;
    box-shadow: var(--lk-shadow-gold);
}

.lk-staging-room-icon svg {
    width: 22px;
    height: 22px;
    color: var(--lk-gold-dark);
}

.lk-staging-room-card:hover .lk-staging-room-icon svg,
.lk-staging-room-card.active .lk-staging-room-icon svg {
    color: var(--lk-text-on-gold);
}

.lk-staging-room-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--lk-text-secondary);
}

.lk-staging-room-card.active .lk-staging-room-label {
    color: var(--lk-navy-medium);
    font-weight: 700;
}

/* Style Chips */
.lk-staging-style-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.lk-staging-style-chip {
    flex-shrink: 0;
    padding: 10px 18px;
    background: var(--lk-bg-elevated);
    border: 1px solid var(--lk-border-light);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--lk-text-secondary);
}

.lk-staging-style-chip svg {
    width: 14px;
    height: 14px;
    color: var(--lk-gold-dark);
}

.lk-staging-style-chip:hover {
    border-color: var(--lk-gold-primary);
    color: var(--lk-text-primary);
    background: var(--lk-gold-soft);
}

.lk-staging-style-chip.active {
    background: var(--lk-navy-gradient);
    border-color: transparent;
    color: var(--lk-text-on-dark);
    box-shadow: var(--lk-shadow-navy);
}

.lk-staging-style-chip.active svg {
    color: var(--lk-gold-light);
}

/* Custom AI Area */
.lk-staging-custom-area {
    display: none;
}

.lk-staging-custom-area.active {
    display: block;
}

.lk-staging-custom-textarea {
    width: 100%;
    min-height: 100px;
    padding: 14px;
    background: var(--lk-bg-input);
    border: 1px solid var(--lk-border-light);
    border-radius: var(--lk-radius-md);
    color: var(--lk-text-primary);
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: all 0.2s ease;
}

.lk-staging-custom-textarea:focus {
    outline: none;
    border-color: var(--lk-gold-primary);
    box-shadow: 0 0 0 3px var(--lk-gold-soft);
}

.lk-staging-quick-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.lk-staging-quick-prompt {
    padding: 8px 14px;
    background: var(--lk-bg-elevated);
    border: 1px solid var(--lk-border-light);
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--lk-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.lk-staging-quick-prompt svg {
    width: 14px;
    height: 14px;
    color: var(--lk-gold-dark);
}

.lk-staging-quick-prompt:hover {
    background: var(--lk-navy-gradient);
    border-color: transparent;
    color: var(--lk-text-on-dark);
}

.lk-staging-quick-prompt:hover svg {
    color: var(--lk-gold-light);
}

/* Generate Section */
.lk-staging-generate-section {
    padding: 20px;
    background: var(--lk-bg-elevated);
    border-top: 1px solid var(--lk-border-light);
}

.lk-staging-generate-btn {
    width: 100%;
    padding: 18px;
    background: var(--lk-gold-gradient);
    border: none;
    border-radius: var(--lk-radius-lg);
    color: var(--lk-text-on-gold);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--lk-shadow-gold);
}

.lk-staging-generate-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.lk-staging-generate-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px var(--lk-gold-glow);
}

.lk-staging-generate-btn:hover:not(:disabled)::before {
    transform: translateX(100%);
}

.lk-staging-generate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Action Buttons Grid */
.lk-staging-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 20px 20px;
}

.lk-staging-action-btn {
    background: var(--lk-bg-elevated);
    border: 1px solid var(--lk-border-light);
    border-radius: var(--lk-radius-md);
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--lk-text-primary);
    font-size: 13px;
    font-weight: 600;
}

.lk-staging-action-btn svg {
    width: 18px;
    height: 18px;
    color: var(--lk-gold-dark);
}

.lk-staging-action-btn:hover {
    border-color: var(--lk-gold-primary);
    background: var(--lk-gold-soft);
}

.lk-staging-action-btn.primary {
    background: var(--lk-gold-gradient);
    border-color: transparent;
    color: var(--lk-text-on-gold);
    box-shadow: var(--lk-shadow-gold);
}

.lk-staging-action-btn.primary svg {
    color: var(--lk-text-on-gold);
}

.lk-staging-action-btn.primary:hover {
    box-shadow: 0 8px 25px var(--lk-gold-glow);
    transform: translateY(-2px);
}

.lk-staging-action-btn.full {
    grid-column: span 2;
}

/* Cost Display */
.lk-staging-cost {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--lk-bg-elevated);
    border-radius: var(--lk-radius-md);
    margin-bottom: 12px;
}

.lk-staging-cost-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--lk-navy-medium);
}

.lk-staging-cost-label {
    font-size: 12px;
    color: var(--lk-text-muted);
}

/* History Section */
.lk-staging-history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.lk-staging-history-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--lk-radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--lk-shadow-md);
}

.lk-staging-history-item:hover {
    transform: scale(1.03);
    box-shadow: var(--lk-shadow-xl);
}

.lk-staging-history-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lk-staging-history-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.95) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
}

.lk-staging-history-item:hover .lk-staging-history-overlay {
    opacity: 1;
}

.lk-staging-history-type {
    font-size: 11px;
    font-weight: 600;
    color: var(--lk-gold-light);
}

.lk-staging-history-date {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

/* Tip Box */
.lk-staging-tip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--lk-gold-soft);
    border-radius: var(--lk-radius-md);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.lk-staging-tip-icon {
    width: 32px;
    height: 32px;
    background: var(--lk-gold-gradient);
    border-radius: var(--lk-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lk-staging-tip-icon svg {
    width: 16px;
    height: 16px;
    color: var(--lk-text-on-gold);
}

.lk-staging-tip-text {
    font-size: 13px;
    color: var(--lk-text-secondary);
    line-height: 1.5;
}

.lk-staging-tip-text strong {
    color: var(--lk-navy-medium);
}

/* Lightbox V2 */
.lk-staging-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    justify-content: center;
    align-items: center;
}

.lk-staging-lightbox.active {
    display: flex;
}

.lk-staging-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 26, 0.9);
    backdrop-filter: blur(10px);
}

.lk-staging-lightbox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 85vh;
    z-index: 1;
}

.lk-staging-lightbox-frame {
    position: relative;
    background: white;
    padding: 12px;
    border-radius: var(--lk-radius-xl);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.lk-staging-lightbox-img {
    display: block;
    max-width: 85vw;
    max-height: 65vh;
    object-fit: contain;
    border-radius: var(--lk-radius-md);
}

.lk-staging-lightbox-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 40px;
    height: 40px;
    background: var(--lk-navy-medium);
    color: white;
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--lk-shadow-lg);
    transition: all 0.2s;
    z-index: 10;
}

.lk-staging-lightbox-close:hover {
    background: var(--lk-error);
    transform: scale(1.1);
}

.lk-staging-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(26, 26, 46, 0.8);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.lk-staging-lightbox-nav:hover {
    background: var(--lk-gold-gradient);
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
}

.lk-staging-lightbox-nav.prev { left: -70px; }
.lk-staging-lightbox-nav.next { right: -70px; }

.lk-staging-lightbox-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.lk-staging-lightbox-btn {
    padding: 14px 24px;
    background: var(--lk-navy-medium);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--lk-radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.lk-staging-lightbox-btn:hover {
    background: var(--lk-navy-light);
    border-color: rgba(255, 255, 255, 0.5);
}

.lk-staging-lightbox-btn.primary {
    background: var(--lk-gold-gradient);
    border-color: transparent;
    color: var(--lk-text-on-gold);
}

.lk-staging-lightbox-btn.primary:hover {
    box-shadow: var(--lk-shadow-gold);
}

/* Compare Modal V2 */
.lk-staging-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 26, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100000;
    justify-content: center;
    align-items: center;
}

.lk-staging-modal-overlay.active {
    display: flex;
}

.lk-staging-modal {
    background: var(--lk-bg-card);
    border-radius: var(--lk-radius-xl);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--lk-shadow-xl);
}

.lk-staging-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--lk-border-light);
    background: var(--lk-bg-elevated);
}

.lk-staging-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--lk-text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.lk-staging-modal-close {
    width: 36px;
    height: 36px;
    background: var(--lk-bg-card);
    border: 1px solid var(--lk-border-light);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.lk-staging-modal-close:hover {
    background: var(--lk-error);
    color: white;
    border-color: transparent;
}

/* Compare Slider */
.lk-compare-slider-container {
    padding: 24px;
}

.lk-compare-slider {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--lk-radius-lg);
    box-shadow: var(--lk-shadow-lg);
}

.lk-compare-slider-after,
.lk-compare-slider-before {
    width: 100%;
}

.lk-compare-slider-after img,
.lk-compare-slider-before img {
    width: 100%;
    display: block;
}

.lk-compare-slider-before {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    clip-path: inset(0 50% 0 0);
}

.lk-compare-slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    margin-left: -2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: ew-resize;
    z-index: 10;
}

.lk-compare-slider-line {
    flex: 1;
    width: 2px;
    background: white;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
}

.lk-compare-slider-circle {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lk-navy-medium);
    box-shadow: var(--lk-shadow-lg);
    flex-shrink: 0;
}

.lk-compare-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.lk-compare-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--lk-text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lk-compare-label svg {
    width: 18px;
    height: 18px;
    color: var(--lk-gold-dark);
}

/* =================== STAGING ADDITIONAL STYLES =================== */

/* Section Label */
.lk-section-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--lk-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Icon Circle for card headers */
.lk-icon-circle {
    width: 32px;
    height: 32px;
    background: var(--lk-gold-gradient);
    border-radius: var(--lk-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    box-shadow: var(--lk-shadow-gold);
}

.lk-icon-circle svg {
    width: 16px;
    height: 16px;
    color: var(--lk-text-on-gold);
}

/* Upload area drag over state */
.lk-staging-upload.drag-over {
    background: var(--lk-gold-soft);
    border-color: var(--lk-gold-primary);
}

.lk-staging-upload.drag-over .lk-staging-upload-icon {
    transform: scale(1.1);
}

/* Char counter */
.lk-char-counter {
    font-size: 12px;
    color: var(--lk-text-muted);
}

/* Form elements */
.lk-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--lk-bg-input);
    border: 1px solid var(--lk-border-light);
    border-radius: var(--lk-radius-md);
    color: var(--lk-text-primary);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.lk-select:focus {
    outline: none;
    border-color: var(--lk-gold-primary);
    box-shadow: 0 0 0 3px var(--lk-gold-soft);
}

.lk-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--lk-bg-input);
    border: 1px solid var(--lk-border-light);
    border-radius: var(--lk-radius-md);
    color: var(--lk-text-primary);
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    transition: all 0.2s;
}

.lk-textarea:focus {
    outline: none;
    border-color: var(--lk-gold-primary);
    box-shadow: 0 0 0 3px var(--lk-gold-soft);
}

.lk-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--lk-text-secondary);
}

.lk-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--lk-gold-primary);
}

.lk-form-row {
    margin-bottom: 16px;
}

.lk-form-row:last-child {
    margin-bottom: 0;
}

/* Feedback form */
.lk-feedback-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* History empty state */
.lk-staging-history-grid:empty::before {
    content: 'No staging history yet';
    display: block;
    text-align: center;
    padding: 40px;
    color: var(--lk-text-muted);
    font-size: 14px;
}

/* Mobile responsive for staging */
@media (max-width: 768px) {
    .lk-staging-room-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lk-staging-style-scroll {
        flex-wrap: wrap;
    }
    
    .lk-staging-action-grid {
        grid-template-columns: 1fr;
    }
    
    .lk-staging-action-btn.full {
        grid-column: span 1;
    }
    
    .lk-staging-lightbox-nav.prev {
        left: 10px;
    }
    
    .lk-staging-lightbox-nav.next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .lk-staging-room-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .lk-staging-room-card {
        padding: 12px 8px;
    }
    
    .lk-staging-room-icon {
        width: 36px;
        height: 36px;
    }
    
    .lk-staging-upload {
        padding: 40px 20px;
        min-height: 300px;
    }
    
    .lk-staging-upload-icon {
        width: 70px;
        height: 70px;
    }
    
    .lk-staging-upload-icon svg {
        width: 32px;
        height: 32px;
    }
}

/* Override old staging styles */
.lukian-staging-editor .staging-header,
.lukian-staging-editor .staging-editor-grid,
.lukian-staging-editor .staging-preview-section,
.lukian-staging-editor .staging-controls-section,
.lukian-staging-editor .staging-upload-area,
.lukian-staging-editor .staging-preview-area,
.lukian-staging-editor .staging-preview-main,
.lukian-staging-editor .staging-nav-btn,
.lukian-staging-editor .staging-thumbnails,
.lukian-staging-editor .staging-processing,
.lukian-staging-editor .staging-mode-selector,
.lukian-staging-editor .staging-mode-btn,
.lukian-staging-editor .staging-preset-options,
.lukian-staging-editor .staging-custom-options,
.lukian-staging-editor .staging-generate-btn,
.lukian-staging-editor .staging-action-buttons,
.lukian-staging-editor .staging-action-btn,
.lukian-staging-editor .staging-tip,
.lukian-staging-editor .staging-history-section,
.lukian-staging-editor .staging-history-grid,
.lukian-staging-editor .staging-feedback-section,
.lukian-staging-editor .staging-lightbox,
.lukian-staging-editor .staging-modal-overlay {
    all: unset;
    display: revert;
    box-sizing: border-box;
}

/* =================== ACCOUNT TAB V2 =================== */

/* Stats Row */
.lk-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.lk-stat-card {
    background: var(--lk-bg-card);
    border: 1px solid var(--lk-border-light);
    border-radius: var(--lk-radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
    box-shadow: var(--lk-shadow-sm);
}

.lk-stat-card:hover {
    box-shadow: var(--lk-shadow-md);
    transform: translateY(-2px);
}

.lk-stat-card.highlight {
    background: var(--lk-navy-gradient);
    border-color: transparent;
}

.lk-stat-card.highlight .lk-stat-value,
.lk-stat-card.highlight .lk-stat-label {
    color: var(--lk-text-on-dark);
}

.lk-stat-card.highlight .lk-stat-icon {
    background: rgba(255, 255, 255, 0.15);
}

.lk-stat-card.highlight .lk-stat-icon svg {
    color: var(--lk-gold-light);
}

.lk-stat-icon {
    width: 56px;
    height: 56px;
    background: var(--lk-gold-gradient);
    border-radius: var(--lk-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--lk-shadow-gold);
}

.lk-stat-icon svg {
    width: 28px;
    height: 28px;
    color: var(--lk-text-on-gold);
}

.lk-stat-content {
    flex: 1;
}

.lk-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--lk-navy-medium);
    line-height: 1.2;
}

.lk-stat-label {
    font-size: 13px;
    color: var(--lk-text-muted);
    margin-top: 4px;
}

/* Card Component */
.lk-card {
    background: var(--lk-bg-card);
    border: 1px solid var(--lk-border-light);
    border-radius: var(--lk-radius-xl);
    overflow: hidden;
    box-shadow: var(--lk-shadow-sm);
    margin-bottom: 20px;
}

.lk-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--lk-border-light);
    background: var(--lk-bg-elevated);
}

.lk-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--lk-text-primary);
    display: flex;
    align-items: center;
}

.lk-icon-circle {
    width: 32px;
    height: 32px;
    background: var(--lk-gold-gradient);
    border-radius: var(--lk-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    box-shadow: var(--lk-shadow-gold);
}

.lk-icon-circle svg {
    width: 16px;
    height: 16px;
    color: var(--lk-text-on-gold);
}

.lk-card-body {
    padding: 24px;
}

/* API Key Box */
.lk-api-key-box {
    background: var(--lk-bg-elevated);
    border-radius: var(--lk-radius-md);
    padding: 20px;
    margin-bottom: 16px;
}

.lk-api-key-display {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.lk-api-key-input {
    flex: 1;
    padding: 14px 16px;
    background: var(--lk-bg-card);
    border: 1px solid var(--lk-border-light);
    border-radius: var(--lk-radius-md);
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 13px;
    color: var(--lk-text-primary);
}

.lk-api-key-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.lk-api-key-meta {
    font-size: 12px;
    color: var(--lk-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.lk-api-key-meta svg {
    width: 14px;
    height: 14px;
}

.lk-help-text {
    font-size: 13px;
    color: var(--lk-text-muted);
    margin: 0;
}

/* Alerts */
.lk-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: var(--lk-radius-md);
    margin-bottom: 16px;
}

.lk-alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.lk-alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #b45309;
}

/* Pricing Grid */
.lk-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.lk-price-card {
    background: var(--lk-bg-elevated);
    border: 2px solid var(--lk-border-light);
    border-radius: var(--lk-radius-lg);
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.lk-price-card:hover {
    border-color: var(--lk-gold-primary);
    transform: translateY(-3px);
    box-shadow: var(--lk-shadow-md);
}

.lk-price-card.selected {
    background: var(--lk-gold-soft);
    border-color: var(--lk-gold-primary);
    box-shadow: 0 0 0 3px var(--lk-gold-soft);
}

.lk-price-card.popular {
    border-color: var(--lk-gold-primary);
}

.lk-price-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--lk-gold-gradient);
    color: var(--lk-text-on-gold);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--lk-shadow-gold);
}

.lk-price-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--lk-navy-medium);
    margin-bottom: 4px;
}

.lk-price-credits {
    font-size: 14px;
    font-weight: 600;
    color: var(--lk-text-primary);
    margin-bottom: 4px;
}

.lk-price-rate {
    font-size: 11px;
    color: var(--lk-text-muted);
}

.lk-price-savings {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--lk-success);
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.lk-price-savings svg {
    width: 12px;
    height: 12px;
}

/* Custom Amount */
.lk-custom-amount {
    background: var(--lk-bg-elevated);
    border-radius: var(--lk-radius-lg);
    padding: 20px;
}

.lk-custom-amount label {
    font-size: 14px;
    font-weight: 500;
    color: var(--lk-text-secondary);
    margin-bottom: 12px;
    display: block;
}

.lk-custom-input-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.lk-custom-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.lk-custom-input-wrapper .lk-currency {
    position: absolute;
    left: 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--lk-text-muted);
}

.lk-custom-input-wrapper .lk-input {
    padding-left: 36px;
}

.lk-credits-preview {
    margin-top: 12px;
    font-size: 14px;
    color: var(--lk-text-secondary);
}

.lk-credits-preview strong {
    color: var(--lk-gold-dark);
}

/* Table Wrapper */
.lk-table-wrapper {
    overflow-x: auto;
}

/* Activity Table */
.lk-activity-table {
    width: 100%;
    border-collapse: collapse;
}

.lk-activity-table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--lk-bg-elevated);
    font-size: 11px;
    font-weight: 600;
    color: var(--lk-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--lk-border-light);
}

.lk-activity-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--lk-border-light);
    font-size: 14px;
    color: var(--lk-text-primary);
}

.lk-activity-table tr:last-child td {
    border-bottom: none;
}

.lk-activity-table tr:hover td {
    background: var(--lk-bg-elevated);
}

.lk-activity-table code {
    background: var(--lk-bg-elevated);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--lk-text-secondary);
    font-family: 'Monaco', 'Menlo', monospace;
}

.lk-text-gold {
    color: var(--lk-gold-dark);
}

.lk-credits-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--lk-gold-soft);
    color: var(--lk-gold-dark);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
}

.lk-credits-badge svg {
    width: 14px;
    height: 14px;
}

/* Status Badges */
.lk-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.lk-status-completed,
.lk-status-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--lk-success);
}

.lk-status-pending,
.lk-status-processing {
    background: rgba(245, 158, 11, 0.1);
    color: var(--lk-warning);
}

.lk-status-failed,
.lk-status-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--lk-error);
}

/* Empty State */
.lk-empty-state {
    text-align: center;
    padding: 48px 20px;
}

.lk-empty-state-icon {
    width: 72px;
    height: 72px;
    background: var(--lk-bg-elevated);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.lk-empty-state-icon svg {
    width: 32px;
    height: 32px;
    color: var(--lk-text-muted);
}

.lk-empty-state-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--lk-text-secondary);
    margin: 0 0 8px;
}

.lk-empty-state-hint {
    font-size: 14px;
    color: var(--lk-text-muted);
    margin: 0;
}

/* Buttons */
.lk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--lk-radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
    text-decoration: none;
}

.lk-btn svg {
    width: 18px;
    height: 18px;
}

.lk-btn-primary {
    background: var(--lk-gold-gradient);
    color: var(--lk-text-on-gold);
    box-shadow: var(--lk-shadow-gold);
}

.lk-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--lk-gold-glow);
}

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

.lk-btn-secondary {
    background: var(--lk-bg-card);
    color: var(--lk-text-secondary);
    border: 1px solid var(--lk-border-medium);
}

.lk-btn-secondary:hover {
    background: var(--lk-bg-elevated);
    border-color: var(--lk-gold-primary);
    color: var(--lk-gold-dark);
}

.lk-btn-danger-outline {
    background: transparent;
    color: var(--lk-error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.lk-btn-danger-outline:hover {
    background: rgba(239, 68, 68, 0.05);
    border-color: var(--lk-error);
}

.lk-btn-large {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--lk-radius-lg);
}

/* Form Elements */
.lk-input,
.lk-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--lk-border-light);
    border-radius: var(--lk-radius-md);
    font-size: 14px;
    font-family: inherit;
    color: var(--lk-text-primary);
    background: var(--lk-bg-card);
    transition: all 0.2s;
    box-sizing: border-box;
}

.lk-input:focus,
.lk-select:focus {
    outline: none;
    border-color: var(--lk-gold-primary);
    box-shadow: 0 0 0 3px var(--lk-gold-soft);
}

.lk-form-group {
    margin-bottom: 16px;
}

.lk-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--lk-text-primary);
}

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

.lk-form-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
}

.lk-form-inline .lk-form-group {
    margin-bottom: 0;
    min-width: 150px;
}

/* =================== AFFILIATE SECTION V2 =================== */

.lk-affiliate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.lk-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.lk-badge svg {
    width: 14px;
    height: 14px;
}

.lk-badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--lk-success);
}

.lk-commission-rate {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--lk-gold-dark);
}

.lk-commission-rate svg {
    width: 16px;
    height: 16px;
}

/* Referral Box */
.lk-referral-box {
    background: var(--lk-bg-elevated);
    border-radius: var(--lk-radius-lg);
    padding: 20px;
    margin-bottom: 24px;
}

.lk-referral-box label {
    font-size: 12px;
    font-weight: 600;
    color: var(--lk-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lk-referral-box label svg {
    width: 14px;
    height: 14px;
}

.lk-referral-input-group {
    display: flex;
    gap: 12px;
}

.lk-referral-input {
    flex: 1;
}

.lk-affiliate-code {
    margin-top: 12px;
    font-size: 13px;
    color: var(--lk-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.lk-affiliate-code svg {
    width: 14px;
    height: 14px;
    color: var(--lk-text-muted);
}

/* Affiliate Stats Grid */
.lk-affiliate-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.lk-aff-stat {
    background: var(--lk-bg-elevated);
    border-radius: var(--lk-radius-md);
    padding: 20px;
    text-align: center;
}

.lk-aff-stat-icon {
    width: 40px;
    height: 40px;
    background: var(--lk-bg-card);
    border: 1px solid var(--lk-border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.lk-aff-stat-icon svg {
    width: 20px;
    height: 20px;
    color: var(--lk-gold-dark);
}

.lk-aff-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--lk-navy-medium);
    margin-bottom: 4px;
}

.lk-aff-stat-label {
    font-size: 12px;
    color: var(--lk-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lk-aff-stat-highlight {
    background: var(--lk-gold-soft);
}

.lk-aff-stat-highlight .lk-aff-stat-icon {
    background: var(--lk-gold-gradient);
    border-color: transparent;
    box-shadow: var(--lk-shadow-gold);
}

.lk-aff-stat-highlight .lk-aff-stat-icon svg {
    color: var(--lk-text-on-gold);
}

.lk-aff-stat-highlight .lk-aff-stat-value {
    color: var(--lk-gold-dark);
}

/* Earnings Cards */
.lk-earnings-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.lk-earnings-card {
    background: var(--lk-bg-elevated);
    border-radius: var(--lk-radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.lk-earnings-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lk-earnings-icon svg {
    width: 24px;
    height: 24px;
}

.lk-earnings-pending .lk-earnings-icon {
    background: rgba(245, 158, 11, 0.1);
}

.lk-earnings-pending .lk-earnings-icon svg {
    color: var(--lk-warning);
}

.lk-earnings-paid .lk-earnings-icon {
    background: rgba(16, 185, 129, 0.1);
}

.lk-earnings-paid .lk-earnings-icon svg {
    color: var(--lk-success);
}

.lk-earnings-content {
    flex: 1;
}

.lk-earnings-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--lk-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.lk-earnings-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--lk-navy-medium);
}

/* Affiliate Settings */
.lk-affiliate-settings {
    background: var(--lk-bg-elevated);
    border-radius: var(--lk-radius-lg);
    padding: 20px;
}

.lk-affiliate-settings h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--lk-text-primary);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lk-affiliate-settings h4 svg {
    width: 18px;
    height: 18px;
    color: var(--lk-text-muted);
}

/* Become Affiliate Section */
.lk-become-affiliate {
    text-align: center;
}

.lk-affiliate-promo {
    margin-bottom: 32px;
}

.lk-promo-icon {
    width: 80px;
    height: 80px;
    background: var(--lk-gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--lk-shadow-gold);
}

.lk-promo-icon svg {
    width: 40px;
    height: 40px;
    color: var(--lk-text-on-gold);
}

.lk-promo-headline {
    font-size: 20px;
    font-weight: 700;
    color: var(--lk-navy-medium);
    margin: 0 0 24px;
}

.lk-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.lk-benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--lk-bg-elevated);
    padding: 14px 18px;
    border-radius: var(--lk-radius-md);
    font-size: 14px;
    color: var(--lk-text-secondary);
}

.lk-benefit-item svg {
    width: 20px;
    height: 20px;
    color: var(--lk-gold-dark);
    flex-shrink: 0;
}

.lk-affiliate-signup-form {
    max-width: 500px;
    margin: 0 auto;
}

.lk-affiliate-signup-form .lk-form-row {
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .lk-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lk-affiliate-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lk-earnings-cards {
        grid-template-columns: 1fr;
    }
    
    .lk-form-row {
        grid-template-columns: 1fr;
    }
    
    .lk-custom-input-row {
        flex-direction: column;
    }
    
    .lk-custom-input-wrapper {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .lk-stats-row {
        grid-template-columns: 1fr;
    }
    
    .lk-pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lk-affiliate-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .lk-aff-stat {
        padding: 14px;
    }
    
    .lk-aff-stat-value {
        font-size: 20px;
    }
    
    .lk-earnings-card {
        flex-direction: column;
        text-align: center;
    }
    
    .lk-form-inline {
        flex-direction: column;
    }
    
    .lk-form-inline .lk-form-group {
        width: 100%;
    }
}
/* =================== STUDIO V3 LAYOUT =================== */

.lk-studio-v3 {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Main Two-Column Layout */
.lk-studio-main {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 24px;
    align-items: start;
}

/* =================== CONTROLS SECTION - STICKY =================== */
.lk-controls-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 20px; /* Just below viewport top since header not sticky */
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding-right: 4px;
}

/* Custom scrollbar for controls */
.lk-controls-section::-webkit-scrollbar {
    width: 4px;
}

.lk-controls-section::-webkit-scrollbar-track {
    background: transparent;
}

.lk-controls-section::-webkit-scrollbar-thumb {
    background: var(--lk-border-medium);
    border-radius: 2px;
}

/* =================== PREVIEW SECTION (LEFT) =================== */
.lk-preview-section {
    background: var(--lk-bg-card);
    border: 1px solid var(--lk-border-light);
    border-radius: var(--lk-radius-xl);
    overflow: hidden;
    box-shadow: var(--lk-shadow-sm);
    min-height: 400px;
}

.lk-preview-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--lk-border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--lk-bg-elevated);
}

.lk-preview-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
    color: var(--lk-text-primary);
}

.lk-preview-title-icon {
    width: 32px;
    height: 32px;
    background: var(--lk-gold-gradient);
    border-radius: var(--lk-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--lk-shadow-gold);
}

.lk-preview-title-icon svg {
    width: 16px;
    height: 16px;
    color: var(--lk-text-on-gold);
}

/* Credits Badge */
.lk-credits-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--lk-gold-soft);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
}

.lk-credits-badge svg {
    width: 16px;
    height: 16px;
    color: var(--lk-gold-dark);
}

.lk-credits-badge .lustro-credits-count {
    color: var(--lk-gold-dark);
    font-weight: 700;
}

/* Upload Area */
.lk-upload-area {
    padding: 24px;
}

.lk-upload-dropzone.lustro-studio-upload {
    border: 2px dashed var(--lk-border-medium) !important;
    border-radius: var(--lk-radius-lg) !important;
    padding: 50px 40px !important;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--lk-bg-elevated) !important;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lk-upload-dropzone.lustro-studio-upload:hover,
.lk-upload-dropzone.lustro-studio-upload.dragover {
    border-color: var(--lk-gold-primary) !important;
    background: var(--lk-gold-soft) !important;
}

.lk-upload-icon {
    width: 72px;
    height: 72px;
    background: var(--lk-bg-card);
    border: 1px solid var(--lk-border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.3s;
}

.lk-upload-dropzone:hover .lk-upload-icon {
    background: var(--lk-gold-gradient);
    border-color: transparent;
    box-shadow: var(--lk-shadow-gold);
}

.lk-upload-icon svg {
    width: 32px;
    height: 32px;
    color: var(--lk-text-muted);
    transition: color 0.3s;
}

.lk-upload-dropzone:hover .lk-upload-icon svg {
    color: var(--lk-text-on-gold);
}

.lk-upload-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--lk-text-primary);
    margin-bottom: 6px;
}

.lk-upload-subtext {
    font-size: 14px;
    color: var(--lk-text-muted);
    margin-bottom: 16px;
}

.lk-upload-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 12px 24px !important;
    background: var(--lk-navy-gradient) !important;
    color: var(--lk-text-on-dark) !important;
    border: none !important;
    border-radius: var(--lk-radius-md) !important;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.lk-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--lk-shadow-lg);
}

.lk-upload-btn svg {
    width: 18px;
    height: 18px;
}

.lk-upload-hint {
    font-size: 12px;
    color: var(--lk-text-muted);
    margin-top: 12px !important;
}

/* Queue Section */
.lk-queue-section {
    padding: 20px !important;
    background: var(--lk-bg-card) !important;
    border-radius: var(--lk-radius-lg) !important;
    margin: 0 !important;
}

.lk-queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.lk-queue-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--lk-text-primary);
}

.lk-queue-header h3 svg {
    width: 18px;
    height: 18px;
    color: var(--lk-gold-dark);
}

.lk-queue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

/* Results Section */
.lk-results-section {
    padding: 20px !important;
    background: var(--lk-bg-card) !important;
    margin: 0 !important;
}

.lk-results-header {
    margin-bottom: 16px;
}

.lk-results-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--lk-text-primary);
}

.lk-results-header h3 svg {
    width: 18px;
    height: 18px;
    color: var(--lk-success);
}

.lk-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.lk-results-cta {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--lk-border-light);
}

/* Trial Banner */
.lk-trial-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(244, 208, 63, 0.1) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--lk-radius-lg);
}

.lk-trial-banner svg {
    width: 20px;
    height: 20px;
    color: var(--lk-gold-dark);
    flex-shrink: 0;
}

.lk-trial-banner span {
    flex: 1;
    font-size: 13px;
    color: var(--lk-text-primary);
}

.lk-trial-btn {
    padding: 8px 16px;
    background: var(--lk-gold-gradient);
    color: var(--lk-text-on-gold);
    border-radius: var(--lk-radius-md);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

/* Control Tabs */
.lk-control-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 4px;
    background: var(--lk-bg-card);
    border: 1px solid var(--lk-border-light);
    border-radius: var(--lk-radius-lg);
}

.lk-control-tab {
    padding: 12px 8px;
    background: transparent;
    border: none;
    border-radius: var(--lk-radius-md);
    font-weight: 600;
    font-size: 11px;
    color: var(--lk-text-muted);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.lk-control-tab:hover {
    color: var(--lk-text-primary);
    background: var(--lk-bg-elevated);
}

.lk-control-tab.active {
    background: var(--lk-gold-soft);
    color: var(--lk-gold-dark);
    box-shadow: var(--lk-shadow-sm);
}

.lk-control-tab svg {
    width: 18px;
    height: 18px;
}

/* Options Wrapper */
.lk-options-wrapper {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
    background: transparent !important;
    padding: 0 !important;
}

.lk-options-wrapper h3 {
    display: none;
}

/* Control Panels */
.lk-control-panel {
    display: none;
}

.lk-control-panel.active {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Control Card */
.lk-control-card {
    background: var(--lk-bg-card);
    border: 1px solid var(--lk-border-light);
    border-radius: var(--lk-radius-xl);
    overflow: hidden;
    box-shadow: var(--lk-shadow-sm);
}

.lk-control-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--lk-border-light);
    background: var(--lk-bg-elevated);
}

.lk-control-card-icon {
    width: 32px;
    height: 32px;
    background: var(--lk-gold-gradient);
    border-radius: var(--lk-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--lk-shadow-gold);
    flex-shrink: 0;
}

.lk-control-card-icon svg {
    width: 16px;
    height: 16px;
    color: var(--lk-text-on-gold);
}

.lk-control-card-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--lk-text-primary);
}

.lk-control-card-subtitle {
    font-size: 11px;
    color: var(--lk-text-muted);
}

.lk-control-card-body {
    padding: 14px;
}

/* Enhancement Grid - 2 columns */
.lk-enhancement-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.lk-enhancement-grid.lk-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Enhancement Items */
.lk-enhancement-item {
    background: var(--lk-bg-elevated);
    border: 2px solid var(--lk-border-light);
    border-radius: var(--lk-radius-md);
    padding: 14px 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lk-enhancement-item:hover {
    border-color: var(--lk-gold-primary);
    background: var(--lk-gold-soft);
}

.lk-enhancement-item:has(input:checked) {
    border-color: var(--lk-gold-primary);
    background: var(--lk-gold-soft);
    box-shadow: 0 0 0 3px var(--lk-gold-soft);
}

.lk-enhancement-item input[type="radio"] {
    display: none;
}

.lk-enhancement-icon {
    width: 36px;
    height: 36px;
    background: var(--lk-bg-card);
    border: 1px solid var(--lk-border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.lk-enhancement-item:hover .lk-enhancement-icon,
.lk-enhancement-item:has(input:checked) .lk-enhancement-icon {
    background: var(--lk-gold-gradient);
    border-color: transparent;
    box-shadow: var(--lk-shadow-gold);
}

.lk-enhancement-icon svg {
    width: 18px;
    height: 18px;
    color: var(--lk-text-muted);
    transition: color 0.2s;
}

.lk-enhancement-item:hover .lk-enhancement-icon svg,
.lk-enhancement-item:has(input:checked) .lk-enhancement-icon svg {
    color: var(--lk-text-on-gold);
}

.lk-enhancement-label {
    font-weight: 600;
    font-size: 12px;
    color: var(--lk-text-primary);
    margin-bottom: 2px;
}

.lk-enhancement-desc {
    font-size: 10px;
    color: var(--lk-text-muted);
}

/* =================== ROOM GRID - STAGING =================== */
.lk-room-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns for better text fit */
    gap: 8px;
}

.lk-room-item {
    background: var(--lk-bg-elevated);
    border: 2px solid var(--lk-border-light);
    border-radius: var(--lk-radius-md);
    padding: 10px 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 70px;
}

.lk-room-item:hover {
    border-color: var(--lk-gold-primary);
    background: var(--lk-gold-soft);
}

.lk-room-item:has(input:checked) {
    border-color: var(--lk-gold-primary);
    background: var(--lk-gold-soft);
    box-shadow: 0 0 0 3px var(--lk-gold-soft);
}

.lk-room-item input[type="radio"] {
    display: none;
}

.lk-room-item svg {
    width: 24px;
    height: 24px;
    color: var(--lk-text-muted);
    transition: color 0.2s;
    flex-shrink: 0;
}

.lk-room-item:hover svg,
.lk-room-item:has(input:checked) svg {
    color: var(--lk-gold-dark);
}

.lk-room-item span {
    font-weight: 600;
    font-size: 11px;
    color: var(--lk-text-primary);
    line-height: 1.25;
    text-align: center;
    max-width: 100%;
    padding: 0 2px;
}

/* =================== AI PROVIDER SELECTOR =================== */
.lk-provider-selector {
    background: var(--lk-bg-card);
    border: 1px solid var(--lk-border-light);
    border-radius: var(--lk-radius-lg);
    padding: 10px;
    box-shadow: var(--lk-shadow-sm);
}

.lk-provider-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 600;
    color: var(--lk-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.lk-provider-label svg {
    width: 12px;
    height: 12px;
}

.lk-provider-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.lk-provider-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--lk-bg-elevated);
    border: 2px solid var(--lk-border-light);
    border-radius: var(--lk-radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.lk-provider-option:hover {
    border-color: var(--lk-gold-primary);
    background: var(--lk-gold-soft);
}

.lk-provider-option.active {
    border-color: var(--lk-gold-primary);
    background: var(--lk-gold-gradient);
    color: var(--lk-text-on-gold);
}

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

.lk-provider-icon {
    width: 28px;
    height: 28px;
    background: var(--lk-bg-card);
    border: 1px solid var(--lk-border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.lk-provider-option.active .lk-provider-icon {
    background: rgba(255,255,255,0.2);
    border-color: transparent;
}

.lk-provider-icon svg {
    width: 14px;
    height: 14px;
    color: var(--lk-text-muted);
}

.lk-provider-option.active .lk-provider-icon svg {
    color: var(--lk-text-on-gold);
}

.lk-provider-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lk-provider-name {
    font-weight: 700;
    font-size: 11px;
    color: var(--lk-text-primary);
    line-height: 1.2;
}

.lk-provider-option.active .lk-provider-name {
    color: var(--lk-text-on-gold);
}

.lk-provider-desc {
    font-size: 9px;
    color: var(--lk-text-muted);
    text-align: left;
    line-height: 1.2;
}

.lk-provider-option.active .lk-provider-desc {
    color: rgba(255,255,255,0.8);
}

/* =================== STYLE CHIPS =================== */
.lk-style-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lk-style-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--lk-bg-elevated);
    border: 2px solid var(--lk-border-light);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--lk-text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.lk-style-chip:hover {
    border-color: var(--lk-gold-primary);
    background: var(--lk-gold-soft);
    color: var(--lk-gold-dark);
}

.lk-style-chip.active {
    border-color: var(--lk-gold-primary);
    background: var(--lk-gold-gradient);
    color: var(--lk-text-on-gold);
}

.lk-style-chip svg {
    width: 14px;
    height: 14px;
}

.lk-style-chip.active svg {
    color: var(--lk-text-on-gold);
}

/* Custom Prompt */
.lk-custom-prompt-wrapper {
    margin-top: 12px;
}

.lk-custom-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--lk-border-light);
    border-radius: var(--lk-radius-md);
    font-family: inherit;
    font-size: 13px;
    resize: vertical;
    background: var(--lk-bg-elevated);
    color: var(--lk-text-primary);
    transition: border-color 0.2s;
    min-height: 80px;
}

.lk-custom-textarea:focus {
    outline: none;
    border-color: var(--lk-gold-primary);
}

.lk-custom-info {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.lk-char-count {
    font-size: 11px;
    color: var(--lk-text-muted);
}

.lk-quick-prompts {
    margin-top: 14px;
}

.lk-quick-prompts-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--lk-text-secondary);
    margin-bottom: 8px;
}

.lk-quick-prompts-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lk-quick-prompt {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    background: var(--lk-bg-elevated);
    border: 1px solid var(--lk-border-light);
    border-radius: 16px;
    font-size: 10px;
    color: var(--lk-text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.lk-quick-prompt:hover {
    border-color: var(--lk-gold-primary);
    background: var(--lk-gold-soft);
    color: var(--lk-gold-dark);
}

.lk-quick-prompt svg {
    width: 12px;
    height: 12px;
}

/* Generate Button */
.lk-generate-section {
    background: var(--lk-bg-card);
    border: 1px solid var(--lk-border-light);
    border-radius: var(--lk-radius-xl);
    padding: 16px;
    box-shadow: var(--lk-shadow-sm);
}

.lk-generate-btn {
    width: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px !important;
    background: var(--lk-gold-gradient) !important;
    color: var(--lk-text-on-gold) !important;
    border: none !important;
    border-radius: var(--lk-radius-lg) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    cursor: pointer;
    box-shadow: var(--lk-shadow-gold);
    transition: all 0.2s;
}

.lk-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--lk-gold-glow);
}

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

.lk-generate-btn svg {
    width: 20px;
    height: 20px;
}

.lk-generate-btn-cost {
    background: rgba(0, 0, 0, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* =================== HISTORY SECTION =================== */
.lk-history-section {
    background: var(--lk-bg-card) !important;
    border: 1px solid var(--lk-border-light);
    border-radius: var(--lk-radius-xl);
    overflow: hidden;
    box-shadow: var(--lk-shadow-sm);
    padding: 0 !important;
}

.lk-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--lk-border-light);
    background: var(--lk-bg-elevated);
}

.lk-history-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
    color: var(--lk-text-primary);
}

.lk-history-title svg {
    width: 18px;
    height: 18px;
    color: var(--lk-gold-dark);
}

.lk-history-action {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--lk-bg-card);
    border: 1px solid var(--lk-border-light);
    border-radius: var(--lk-radius-md);
    font-size: 12px;
    font-weight: 600;
    color: var(--lk-text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.lk-history-action:hover {
    border-color: var(--lk-gold-primary);
    color: var(--lk-gold-dark);
}

.lk-history-action.danger:hover {
    border-color: var(--lk-error);
    color: var(--lk-error);
}

.lk-history-action svg {
    width: 14px;
    height: 14px;
}

.lk-history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

/* History Item Buttons - Override original */
.lk-studio-v3 .lustro-history-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.lk-studio-v3 .lustro-btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lk-bg-card);
    border: 1px solid var(--lk-border-light);
    border-radius: var(--lk-radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.lk-studio-v3 .lustro-btn-icon:hover {
    background: var(--lk-gold-soft);
    border-color: var(--lk-gold-primary);
}

.lk-studio-v3 .lustro-history-download:hover {
    background: var(--lk-gold-gradient);
    border-color: transparent;
    color: var(--lk-text-on-gold);
}

.lk-studio-v3 .lustro-history-delete:hover {
    background: var(--lk-error);
    border-color: transparent;
    color: white;
}

/* =================== RESULT ACTIONS - DOWNLOAD BUTTON =================== */
.lk-studio-v3 .lustro-result-actions {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: var(--lk-bg-elevated);
}

.lk-studio-v3 .lustro-result-actions .lustro-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--lk-radius-md);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.lk-studio-v3 .lustro-btn-secondary {
    background: var(--lk-bg-card);
    border: 1px solid var(--lk-border-light) !important;
    color: var(--lk-text-secondary);
}

.lk-studio-v3 .lustro-btn-secondary:hover {
    background: var(--lk-gold-soft);
    border-color: var(--lk-gold-primary) !important;
    color: var(--lk-gold-dark);
}

/* Download button - Gold styling */
.lk-studio-v3 .lustro-download-btn,
.lk-studio-v3 .lustro-btn-primary {
    background: var(--lk-gold-gradient) !important;
    color: var(--lk-text-on-gold) !important;
    box-shadow: var(--lk-shadow-gold);
}

.lk-studio-v3 .lustro-download-btn:hover,
.lk-studio-v3 .lustro-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--lk-gold-glow);
}

/* =================== FEEDBACK SECTION =================== */
.lk-feedback-section {
    background: var(--lk-bg-card) !important;
    border: 1px solid var(--lk-border-light);
    border-radius: var(--lk-radius-xl);
    overflow: hidden;
    box-shadow: var(--lk-shadow-sm);
    padding: 0 !important;
}

.lk-feedback-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--lk-border-light);
    background: var(--lk-bg-elevated);
}

.lk-feedback-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
    color: var(--lk-text-primary);
}

.lk-feedback-title svg {
    width: 18px;
    height: 18px;
    color: var(--lk-gold-dark);
}

.lk-feedback-form {
    padding: 20px;
}

.lk-feedback-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.lk-feedback-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lk-feedback-row label {
    font-size: 12px;
    font-weight: 600;
    color: var(--lk-text-secondary);
}

.lk-input,
.lk-select,
.lk-textarea {
    padding: 10px 14px;
    border: 1px solid var(--lk-border-light);
    border-radius: var(--lk-radius-md);
    font-family: inherit;
    font-size: 13px;
    background: var(--lk-bg-elevated);
    color: var(--lk-text-primary);
    transition: border-color 0.2s;
}

.lk-input:focus,
.lk-select:focus,
.lk-textarea:focus {
    outline: none;
    border-color: var(--lk-gold-primary);
}

.lk-feedback-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--lk-border-light);
}

.lk-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--lk-text-secondary);
    cursor: pointer;
}

.lk-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--lk-bg-elevated);
    border: 1px solid var(--lk-border-light);
    border-radius: var(--lk-radius-md);
    font-weight: 600;
    font-size: 13px;
    color: var(--lk-text-secondary);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.lk-action-btn:hover {
    border-color: var(--lk-gold-primary);
    color: var(--lk-gold-dark);
}

.lk-action-btn.primary {
    background: var(--lk-gold-gradient);
    border-color: transparent;
    color: var(--lk-text-on-gold);
    box-shadow: var(--lk-shadow-gold);
}

.lk-action-btn.primary:hover {
    transform: translateY(-2px);
}

.lk-action-btn svg {
    width: 16px;
    height: 16px;
}

/* =================== MODAL LIGHTBOX OVERRIDES =================== */
.lk-studio-v3 .lustro-modal-content {
    background: var(--lk-bg-card);
    border-radius: var(--lk-radius-xl);
}

.lk-studio-v3 .lustro-modal-header {
    background: var(--lk-bg-elevated);
    border-bottom: 1px solid var(--lk-border-light);
}

.lk-studio-v3 .lustro-modal-close {
    background: var(--lk-bg-card);
    border: 1px solid var(--lk-border-light);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.lk-studio-v3 .lustro-modal-close:hover {
    background: var(--lk-error);
    border-color: var(--lk-error);
    color: white;
}

/* =================== RESPONSIVE =================== */
@media (max-width: 1024px) {
    .lk-studio-main {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }
    
    /* On mobile, preview/upload section should be FIRST (on top) */
    .lk-preview-section {
        order: 1;
    }
    
    /* Controls section comes SECOND (below upload) */
    .lk-controls-section {
        position: static;
        max-height: none;
        order: 2;
    }
    
    .lk-room-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .lk-provider-options {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .lk-room-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .lk-feedback-grid {
        grid-template-columns: 1fr;
    }
    
    .lk-history-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .lk-control-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lk-enhancement-grid {
        grid-template-columns: 1fr;
    }
    
    .lk-enhancement-grid.lk-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lk-room-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lk-room-item {
        min-height: 60px;
        padding: 8px 4px;
    }
    
    .lk-room-item svg {
        width: 18px;
        height: 18px;
    }
    
    .lk-room-item span {
        font-size: 9px;
    }
    
    .lk-style-chips {
        justify-content: center;
    }
    
    .lk-feedback-footer {
        flex-direction: column;
        gap: 12px;
    }
    
    .lk-action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Hide original accordion structure elements */
.lk-studio-v3 .lukian-accordion {
    display: none !important;
}

.lk-studio-v3 .lustro-studio-topbar {
    display: none !important;
}

.lk-studio-v3 .lustro-trial-banner {
    display: none !important;
}

/* Remove old staging grid styles to avoid conflicts */
.lk-staging-grid,
.lk-staging-item,
.lk-staging-icon,
.lk-staging-label {
    display: none !important;
}

/* =================== MODAL LIGHTBOX OVERRIDES =================== */
.lk-studio-v3 .lustro-modal-overlay {
    backdrop-filter: blur(4px);
}

.lk-studio-v3 .lustro-modal-content {
    background: var(--lk-bg-card);
    border-radius: var(--lk-radius-xl);
    border: 1px solid var(--lk-border-light);
    box-shadow: var(--lk-shadow-xl);
}

.lk-studio-v3 .lustro-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: var(--lk-bg-card);
    border: 1px solid var(--lk-border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    color: var(--lk-text-secondary);
}

.lk-studio-v3 .lustro-modal-close:hover {
    background: var(--lk-error);
    border-color: var(--lk-error);
    color: white;
}

.lk-studio-v3 .lustro-modal-close svg {
    width: 20px;
    height: 20px;
}

.lk-studio-v3 .lustro-preview-tabs {
    background: var(--lk-bg-elevated);
    border-bottom: 1px solid var(--lk-border-light);
    padding: 4px;
    display: flex;
    gap: 4px;
}

.lk-studio-v3 .lustro-preview-tab {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: var(--lk-radius-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--lk-text-muted);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lk-studio-v3 .lustro-preview-tab:hover {
    color: var(--lk-text-primary);
    background: var(--lk-bg-card);
}

.lk-studio-v3 .lustro-preview-tab.active {
    color: var(--lk-gold-dark);
    background: var(--lk-gold-soft);
}

.lk-studio-v3 .lustro-preview-tab svg {
    width: 16px;
    height: 16px;
}

.lk-studio-v3 .lustro-modal-actions {
    padding: 16px 20px;
    background: var(--lk-bg-elevated);
    border-top: 1px solid var(--lk-border-light);
    display: flex;
    justify-content: center;
}

.lk-studio-v3 .lustro-modal-download,
.lk-studio-v3 .lustro-modal-actions .lustro-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--lk-gold-gradient) !important;
    color: var(--lk-text-on-gold) !important;
    border: none;
    border-radius: var(--lk-radius-lg);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--lk-shadow-gold);
    transition: all 0.2s;
}

.lk-studio-v3 .lustro-modal-download:hover,
.lk-studio-v3 .lustro-modal-actions .lustro-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--lk-gold-glow);
}

.lk-studio-v3 .lustro-modal-download svg,
.lk-studio-v3 .lustro-modal-actions .lustro-btn-primary svg {
    width: 18px;
    height: 18px;
}

/* Comparison handle */
.lk-studio-v3 .lustro-handle-circle,
.lk-studio-v3 .lustro-fs-handle-circle {
    width: 44px;
    height: 44px;
    background: var(--lk-gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--lk-shadow-gold);
    color: var(--lk-text-on-gold);
}

.lk-studio-v3 .lustro-handle-circle svg,
.lk-studio-v3 .lustro-fs-handle-circle svg {
    width: 20px;
    height: 20px;
}

/* History item styling */
.lk-studio-v3 .lustro-history-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px;
    background: var(--lk-bg-elevated);
    border: 1px solid var(--lk-border-light);
    border-radius: var(--lk-radius-lg);
    transition: all 0.2s;
}

.lk-studio-v3 .lustro-history-item:hover {
    border-color: var(--lk-gold-primary);
    background: var(--lk-gold-soft);
}

.lk-studio-v3 .lustro-history-thumb {
    width: 80px;
    height: 60px;
    border-radius: var(--lk-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--lk-border-light);
}

.lk-studio-v3 .lustro-history-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lk-studio-v3 .lustro-history-info {
    flex: 1;
    min-width: 0;
}

.lk-studio-v3 .lustro-history-photo-id {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--lk-gold-dark);
    font-family: 'SF Mono', Monaco, monospace;
    margin-bottom: 2px;
}

.lk-studio-v3 .lustro-history-name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--lk-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.lk-studio-v3 .lustro-history-date {
    display: block;
    font-size: 11px;
    color: var(--lk-text-muted);
}

/* History action buttons */
.lk-studio-v3 .lustro-history-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.lk-studio-v3 .lustro-btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lk-bg-card);
    border: 1px solid var(--lk-border-light);
    border-radius: var(--lk-radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--lk-text-muted);
    padding: 0;
}

.lk-studio-v3 .lustro-btn-icon svg {
    width: 16px;
    height: 16px;
}

.lk-studio-v3 .lustro-btn-icon:hover {
    background: var(--lk-gold-soft);
    border-color: var(--lk-gold-primary);
    color: var(--lk-gold-dark);
}

.lk-studio-v3 .lustro-history-download:hover {
    background: var(--lk-gold-gradient);
    border-color: transparent;
    color: var(--lk-text-on-gold);
}

.lk-studio-v3 .lustro-history-delete:hover {
    background: var(--lk-error);
    border-color: transparent;
    color: white;
}

/* Result item overrides */
.lk-studio-v3 .lustro-result-item {
    background: var(--lk-bg-card);
    border: 1px solid var(--lk-border-light);
    border-radius: var(--lk-radius-xl);
    overflow: hidden;
    box-shadow: var(--lk-shadow-md);
}

.lk-studio-v3 .lustro-result-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 14px;
    background: var(--lk-bg-elevated);
    border-top: 1px solid var(--lk-border-light);
}

.lk-studio-v3 .lustro-result-actions .lustro-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border-radius: var(--lk-radius-md);
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.lk-studio-v3 .lustro-result-actions .lustro-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.lk-studio-v3 .lustro-result-actions .lustro-btn-secondary {
    background: var(--lk-bg-card);
    border: 1px solid var(--lk-border-light);
    color: var(--lk-text-secondary);
}

.lk-studio-v3 .lustro-result-actions .lustro-btn-secondary:hover {
    background: var(--lk-gold-soft);
    border-color: var(--lk-gold-primary);
    color: var(--lk-gold-dark);
}

.lk-studio-v3 .lustro-result-actions .lustro-download-btn {
    background: var(--lk-gold-gradient) !important;
    border: none !important;
    color: var(--lk-text-on-gold) !important;
    box-shadow: var(--lk-shadow-gold);
}

.lk-studio-v3 .lustro-result-actions .lustro-download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--lk-gold-glow);
}
