:root {
    --bg-dark: #090a0f;
    --bg-panel: #12141c;
    --bg-glass: rgba(18, 20, 28, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-main: #f3f4f6;
    --text-muted: #8b92a5;
    
    --neon-cyan: #00f0ff;
    --neon-purple: #b026ff;
    --neon-pink: #ff007f;
    --neon-red: #ff3366;
    
    --glow-cyan: rgba(0, 240, 255, 0.5);
    --glow-purple: rgba(176, 38, 255, 0.5);
    
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-pill: 9999px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }

body {
    background-color: var(--bg-dark); color: var(--text-main);
    overflow-x: hidden; scroll-behavior: smooth;
}

.hidden { display: none !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon-cyan); }

.app-container { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
    width: 260px; background-color: var(--bg-panel); border-right: 1px solid var(--border-color);
    display: flex; flex-direction: column; padding: 28px 24px; position: sticky; top: 0; height: 100vh; z-index: 100;
}

.logo {
    display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700;
    color: var(--text-main); margin-bottom: 48px; letter-spacing: 0;
}

.logo i { color: var(--neon-cyan); filter: drop-shadow(0 0 8px var(--glow-cyan)); }

.menu { display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }

.menu-item {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px;
    border-radius: var(--radius-md); color: var(--text-muted); text-decoration: none;
    font-size: 16px; font-weight: 500; transition: all 0.3s ease;
}

.menu-item i { font-size: 22px; }

.menu-item:hover, .menu-item.active { background: rgba(255, 255, 255, 0.03); color: var(--text-main); }
.menu-item.active i { color: var(--neon-purple); filter: drop-shadow(0 0 8px var(--glow-purple)); }

.billing-section { margin-top: auto; border-top: 1px solid var(--border-color); padding-top: 24px; }

.billing { background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%); border: 1px solid var(--border-color); }
.billing i { color: #feca57; font-size: 28px;}
.billing-text { display: flex; flex-direction: column; gap: 4px; }

.neon-badge {
    background: rgba(255, 51, 102, 0.15); color: var(--neon-red); border: 1px solid rgba(255, 51, 102, 0.3);
    font-size: 11px; padding: 3px 8px; border-radius: var(--radius-pill); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px; animation: pulse-red 2s infinite; width: max-content;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(255, 51, 102, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(255, 51, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 51, 102, 0); }
}

/* Main Content */
.main-content { flex-grow: 1; position: relative; }

/* Hero Section */
.hero { position: relative; height: 420px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-video { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); min-width: 100%; min-height: 100%; object-fit: cover; z-index: 1; opacity: 0.4; }
.hero-video-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 0%, var(--bg-dark) 100%); z-index: 2; }
.hero-content { position: relative; z-index: 3; text-align: center; transform: translateY(-40px); }
.hero h1 {
    font-size: 56px; font-weight: 700; letter-spacing: -1.5px;
    background: linear-gradient(to right, #ffffff, #8b92a5);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

/* Floating Box */
.floating-box-container { position: relative; z-index: 10; display: flex; justify-content: center; margin-top: -150px; padding: 0 40px; }
.glass-panel {
    background: var(--bg-glass); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 24px 48px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
    border-radius: 24px; width: 100%; max-width: 900px; padding: 32px;
}

/* Tabs */
.tab-pills {
    display: flex; justify-content: center; gap: 8px; margin-bottom: 32px;
    background: rgba(0,0,0,0.3); padding: 8px; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,0.05);
    flex-wrap: wrap;
}
.tab-btn {
    background: transparent; border: none; color: var(--text-muted); padding: 12px 24px; font-size: 15px; font-weight: 600;
    border-radius: var(--radius-pill); cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all 0.3s ease;
}
.tab-btn i { font-size: 20px; }
.tab-btn:hover { color: var(--text-main); }
.tab-btn.active { background: rgba(255,255,255,0.08); color: var(--text-main); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }

.tab-btn[data-tab="tab-generate"].active { color: var(--neon-cyan); text-shadow: 0 0 10px var(--glow-cyan); }
.tab-btn[data-tab="tab-effect"].active { color: var(--neon-purple); text-shadow: 0 0 10px var(--glow-purple); }
.tab-btn[data-tab="tab-reference"].active { color: #feca57; }
.tab-btn[data-tab="tab-edit"].active { color: var(--neon-pink); }
.tab-btn[data-tab="tab-transfer"].active { color: #1dd1a1; }

/* Tab Content */
.tab-pane { display: none; animation: fadeIn 0.4s ease forwards; }
.tab-pane.active { display: flex; flex-direction: column; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Inputs */
.glow-border {
    position: relative; border-radius: var(--radius-lg); background: rgba(0,0,0,0.4);
    border: 1px solid var(--border-color); transition: all 0.3s ease;
}
.glow-border:focus-within, .spell-item.active { border-color: var(--neon-cyan); box-shadow: 0 0 20px rgba(0, 240, 255, 0.1), inset 0 0 10px rgba(0, 240, 255, 0.05); }

/* Cart Dropdown */
.cart-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: rgba(15, 15, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 320px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1000;
    text-align: left;
}
.cart-item {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.cart-item:hover {
    background: rgba(255,255,255,0.05);
}
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--neon-red);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Checkout Modal */
.checkout-timer {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    padding: 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Pricing / Top Up Modal CSS */
.topup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}
.topup-option {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}
.topup-option::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    opacity: 0; transition: opacity 0.3s ease;
}
.topup-option:hover {
    transform: translateY(-5px);
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3), 0 0 15px rgba(0, 240, 255, 0.2);
}
.topup-option:hover::before { opacity: 1; }
.topup-coins {
    font-size: 1.4rem; font-weight: bold; color: white; margin-bottom: 5px;
    display: flex; align-items: center; justify-content: center; gap: 5px;
}
.topup-price {
    font-size: 1rem; color: var(--text-muted);
}
.popular {
    border-color: rgba(254, 202, 87, 0.5);
    background: rgba(254, 202, 87, 0.05);
}
.popular:hover {
    border-color: #feca57;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3), 0 0 15px rgba(254, 202, 87, 0.2);
}
.popular-badge {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    background: linear-gradient(90deg, #feca57, #ff9f43);
    color: #111; font-size: 0.7rem; font-weight: bold;
    padding: 3px 10px; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px;
}

.giant-input { padding: 20px; display: flex; flex-direction: column; margin-bottom: 24px; }
textarea { width: 100%; min-height: 120px; background: transparent; border: none; color: var(--text-main); font-size: 18px; resize: none; outline: none; line-height: 1.5; }
textarea::placeholder { color: rgba(255,255,255,0.15); }

.input-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 12px; }
.icon-btn, .help-icon {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); color: var(--text-muted);
    width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s; font-size: 18px;
}
.icon-btn:hover, .help-icon:hover { background: rgba(255,255,255,0.1); color: var(--text-main); }

/* Tooltip */
.tooltip { position: relative; }
.tooltip::after {
    content: attr(data-tooltip); position: absolute; bottom: 120%; left: 50%; transform: translateX(-50%) translateY(10px);
    background: #111; color: #fff; padding: 10px 14px; border-radius: 8px; font-size: 13px; white-space: nowrap;
    pointer-events: none; opacity: 0; transition: all 0.2s; border: 1px solid #333; z-index: 100; font-weight: 500;
}
.tooltip:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.abs-help { position: absolute; right: 16px; bottom: 16px; }

/* Buttons */
.action-btn {
    width: 100%; padding: 18px; border-radius: var(--radius-lg); border: none; font-size: 18px; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px; position: relative;
    overflow: hidden; color: #fff; background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
    background-size: 200% auto; transition: 0.5s; box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.action-btn:hover { background-position: right center; transform: translateY(-2px); box-shadow: 0 15px 30px rgba(0, 240, 255, 0.2); }
.action-btn i { font-size: 24px; }
.cost { background: rgba(0,0,0,0.3); padding: 4px 10px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600; }

.generate-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    height: 38px;
    border-radius: var(--radius-pill);
    border: none;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
    background-size: 200% auto;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
    white-space: nowrap;
}

.generate-submit-btn:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
}

.generate-submit-btn i {
    font-size: 18px;
}

/* Utility layout */
.drag-drop-zone, .upload-btn, .upload-area {
    border: 2px dashed rgba(255,255,255,0.1); border-radius: var(--radius-lg); display: flex; flex-direction: column;
    align-items: center; justify-content: center; padding: 40px; gap: 16px; color: var(--text-muted); cursor: pointer;
    background: rgba(0,0,0,0.2); transition: all 0.3s; margin-bottom: 24px;
}
.upload-btn { padding: 30px; margin-bottom: 0; }
.drag-drop-zone:hover, .upload-btn:hover, .upload-area:hover { border-color: var(--neon-cyan); background: rgba(0, 240, 255, 0.05); color: var(--text-main); }
.drag-drop-zone i, .upload-btn i, .upload-area i { font-size: 48px; color: var(--text-main); }

.split-input, .split-columns { display: flex; gap: 16px; align-items: stretch; margin-bottom: 24px;}
.split-input > * { flex: 1; }
.split-columns > .input-group { flex: 1; margin-bottom: 0;}
.flex-grow { flex: 2; display: flex; flex-direction: column;}
.flex-grow textarea { padding: 16px; min-height: 100px;}

.input-group label { display: block; font-size: 11px; text-transform: uppercase; color: var(--text-muted); margin: 12px 16px 0; font-weight: 700; letter-spacing: 0.5px; }
.input-group input { width: 100%; background: transparent; border: none; color: var(--text-main); padding: 8px 16px 16px; font-size: 16px; outline: none; }

.icon-divider { color: var(--text-muted); font-size: 24px; display: flex; align-items: center;}
.transfer-box { flex: 1; }
.transfer-box .upload-area { margin-bottom: 0; padding: 30px 20px;}

.effect-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px;}
.effect-item {
    height: 90px; border-radius: var(--radius-md); display: flex; align-items: flex-end; padding: 12px; font-weight: 700;
    font-size: 14px; cursor: pointer; box-shadow: inset 0 0 0 2px transparent; transition: all 0.2s; text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.effect-item:hover { transform: translateY(-3px); }
.effect-item.active { box-shadow: inset 0 0 0 3px #fff, 0 0 20px rgba(255,255,255,0.15); }

.helper-text { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.micro-text { font-size: 12px; color: rgba(255,255,255,0.4); text-align: center; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 16px; } .mb-3 { margin-bottom: 16px; } .ml-1 { margin-left: 8px; }
.flex-center { display: flex; align-items: center; justify-content: center; } .inline { display: inline-block; margin-bottom: 0; } .m-0 {margin:0;}

/* Gallery */
.gallery-section { padding: 60px 40px; max-width: 1400px; margin: 0 auto; }
.category-ribbon { display: flex; gap: 12px; margin-bottom: 32px; overflow-x: auto; padding-bottom: 10px; }
.cat-btn {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); color: var(--text-muted);
    padding: 10px 20px; border-radius: var(--radius-pill); font-weight: 600; cursor: pointer; white-space: nowrap; transition: all 0.2s;
}
.cat-btn:hover, .cat-btn.active { background: #fff; color: #000; }

.pinterest-grid { column-count: 4; column-gap: 20px; }
.grid-item { break-inside: avoid; margin-bottom: 20px; border-radius: var(--radius-lg); overflow: hidden; position: relative; cursor: pointer; border: 1px solid rgba(255,255,255,0.05); }
.grid-item img { width: 100%; display: block; transition: transform 0.5s ease; }
.item-overlay {
    position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    opacity: 0; transition: opacity 0.3s ease; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
}
.grid-item:hover .item-overlay { opacity: 1; }
.grid-item:hover img { transform: scale(1.05); }

.prompt-text { font-size: 14px; line-height: 1.5; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: #fff;}
.remix-btn {
    background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(12px); 
    border: 1px solid rgba(255,255,255,0.2); 
    color: #fff;
    padding: 10px 16px; 
    border-radius: var(--radius-pill); 
    font-weight: 600; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.remix-btn:hover { 
    background: linear-gradient(90deg, var(--accent-blue), var(--neon-cyan)); 
    border-color: transparent;
    color: #fff; 
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.4);
}

.btn-small {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.btn-small:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.btn-small.primary {
    background: linear-gradient(90deg, var(--accent-blue), var(--neon-cyan));
    border-color: transparent;
}
.btn-small.primary:hover {
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.3);
}

/* Responsive */
@media (max-width: 1200px) { .pinterest-grid { column-count: 3; } }
@media (max-width: 900px) { 
    .pinterest-grid { column-count: 2; }
    .split-input, .split-columns { flex-direction: column; }
    .icon-divider { transform: rotate(90deg); margin: 10px 0; }
}
@media (max-width: 768px) {
    .app-container { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: sticky; top: 0; z-index: 105; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 16px; border-right: none; border-bottom: 1px solid var(--border-color); background: var(--bg-panel); }
    .logo { margin-bottom: 0; }
    .menu { flex-direction: row; overflow-x: auto; margin-top: 16px; width: 100%;}
    .billing-section { margin-top: 0; border-top: none; padding-top: 0; }
    .hero h1 { font-size: 32px; padding: 0 20px;}
    .tab-pills { overflow-x: auto; justify-content: flex-start; }
    .floating-box-container { padding: 0 16px; }
    .glass-panel { padding: 24px 16px; }
    .effect-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Modern Input Bar */
.modern-input-bar {
    background: rgba(0,0,0,0.4);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.model-badge {
    background: rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-main);
}

.quick-settings {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0,0,0,0.3);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.quick-settings span { padding: 0 4px; }
.quick-settings .icon-btn { width: 28px; height: 28px; font-size: 16px; margin-left: 8px;}

.modern-textarea {
    min-height: 80px;
    padding: 8px 4px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    width: 100%;
    resize: none;
    outline: none;
}

.input-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.left-actions, .right-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pill-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

.pill-btn:hover { background: rgba(255,255,255,0.1); color: var(--text-main); }
.divider { color: rgba(255,255,255,0.1); }
.mx-1 { margin: 0 8px; }

.smart-multi-btn {
    width: auto;
    padding: 0 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
}

.sm-btn { padding: 10px 24px; width: auto; font-size: 15px;}
.sm-btn i { font-size: 18px; }

/* Modals */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px);
    z-index: 1000; display: flex; align-items: center; justify-content: center;
    opacity: 1; transition: opacity 0.3s;
}
.modal-overlay.hidden { opacity: 0; pointer-events: none; }

.modal-content {
    background: #1a1c23; border: 1px solid var(--border-color);
    border-radius: 20px; padding: 24px; width: 100%; box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transform: translateY(0); transition: transform 0.3s;
}
.modal-overlay.hidden .modal-content { transform: translateY(20px); }

.modal-settings { max-width: 400px; }
.spellbook-panel { max-width: 650px; }

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.modal-header h3 { font-size: 18px; font-weight: 600; }
.close-modal { background: none; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer; }
.close-modal:hover { color: var(--text-main); }

/* Settings Modal UI */
.res-toggle { display: flex; background: rgba(0,0,0,0.3); border-radius: var(--radius-pill); padding: 4px; margin-bottom: 20px; }
.res-btn, .res-btn-photo { flex: 1; background: transparent; border: none; color: var(--text-muted); padding: 10px; border-radius: var(--radius-pill); font-weight: 600; cursor: pointer; transition: 0.2s; }
.res-btn.active, .res-btn-photo.active { background: rgba(255,255,255,0.1); color: var(--text-main); }
.pro-badge { background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan)); padding: 2px 6px; border-radius: 4px; font-size: 10px; margin-left: 4px; color: #fff;}

.ratio-grid { display: flex; gap: 8px; margin-bottom: 24px; }
.ratio-btn, .ratio-btn-photo { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; background: rgba(255,255,255,0.05); border: 1px solid transparent; padding: 12px 0; border-radius: var(--radius-md); color: var(--text-muted); font-size: 12px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.ratio-btn i, .ratio-btn-photo i { font-size: 20px; }
.ratio-btn.active, .ratio-btn-photo.active { border-color: var(--text-muted); color: var(--text-main); background: rgba(255,255,255,0.1); }

.duration-slider-container { margin-bottom: 24px; }
.dur-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); font-weight: 600; margin-bottom: 12px; }
.dur-labels span.active { color: var(--neon-cyan); }
.slider { -webkit-appearance: none; width: 100%; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.1); outline: none; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--neon-cyan); cursor: pointer; box-shadow: 0 0 10px var(--glow-cyan); }

.toggle-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 500; margin-bottom: 16px; }
.toggle-row i { color: var(--text-muted); margin-left: 4px; font-size: 16px; vertical-align: middle; }

/* Switch */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider-toggle { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(255,255,255,0.1); transition: .4s; border-radius: 34px; }
.slider-toggle:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: var(--text-muted); transition: .4s; border-radius: 50%; }
input:checked + .slider-toggle { background-color: var(--neon-purple); }
input:checked + .slider-toggle:before { transform: translateX(20px); background-color: #fff; box-shadow: 0 0 5px rgba(255,255,255,0.8); }

/* Spellbook */
.spell-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--border-color); margin-bottom: 20px; }
.spell-tabs span { font-size: 14px; font-weight: 600; color: var(--text-muted); padding-bottom: 12px; cursor: pointer; border-bottom: 2px solid transparent; transition: 0.2s; }
.spell-tabs span.active { color: var(--text-main); border-color: var(--neon-cyan); }
.spell-tabs span:hover { color: var(--text-main); }

.spell-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.spell-item { position: relative; border-radius: var(--radius-md); overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: 0.2s; }
.spell-item img { width: 100%; height: 100px; object-fit: cover; display: block; filter: brightness(0.7); transition: 0.2s; }
.spell-label { position: absolute; bottom: 8px; left: 0; width: 100%; text-align: center; font-size: 12px; font-weight: 700; text-shadow: 0 2px 4px rgba(0,0,0,0.8); z-index: 2; }
.spell-item:hover img { filter: brightness(1); transform: scale(1.05); }
.spell-item.active { border-color: var(--neon-cyan); box-shadow: 0 0 15px var(--glow-cyan); }
.spell-item.active img { filter: brightness(1); }

/* Character Carousel (Reference Mode) */
.character-carousel-container {
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}
.character-carousel-container::-webkit-scrollbar { height: 4px; }
.character-carousel-container::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }

.character-carousel {
    display: flex;
    gap: 16px;
    align-items: center;
    width: max-content;
    padding: 0 8px;
}

.character-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.2s;
    opacity: 0.7;
}

.character-avatar:hover { opacity: 1; transform: translateY(-2px); }
.character-avatar.active { opacity: 1; }

.character-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    transition: 0.2s;
}

.character-avatar.active img {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px var(--glow-cyan);
}

.character-avatar span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
}

.add-role i {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px dashed rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-muted);
    transition: 0.2s;
}
.add-role:hover i { background: rgba(255,255,255,0.1); color: var(--text-main); border-style: solid; border-color: rgba(255,255,255,0.3);}

.dropdown-badge {
    background: rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-main);
    cursor: pointer;
}
.dropdown-badge i.ph-caret-down { font-size: 12px; color: var(--text-muted); }

.ref-model-badge {
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-size: 12px;
}

/* Top Navbar */
.top-navbar {
    display: flex;
    justify-content: flex-end;
    padding: 16px 32px;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    pointer-events: none; /* allow clicks to pass through empty space */
    margin-bottom: -75px; /* prevent it from pushing down hero */
}

.top-nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    pointer-events: auto; /* enable clicks on the items */
}

.upgrade-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-main);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.upgrade-btn:hover { background: rgba(255,255,255,0.2); }

.credit-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.profile-container {
    position: relative;
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
}
.profile-avatar:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px var(--glow-cyan);
}

/* Profile Dropdown Menu */
.profile-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 280px;
    background: rgba(20, 20, 25, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 20px rgba(0, 240, 255, 0.1);
    padding: 16px;
    transform-origin: top right;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 200;
}
.profile-dropdown.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.dropdown-avatar-lg {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.dropdown-user-info h4 { margin: 0; font-size: 15px; font-weight: 600; color: var(--text-main); }
.dropdown-user-info span { font-size: 12px; color: var(--text-muted); }

.dropdown-credit-panel {
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.credit-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--neon-cyan);
    font-weight: 600;
    font-size: 14px;
}
.credit-balance i { font-size: 18px; }

.dropdown-menu-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    transition: 0.2s;
}
.dropdown-item i { font-size: 16px; }

.dropdown-item:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-main);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 8px 0;
}

.text-danger { color: var(--neon-red) !important; }
.text-danger:hover { background: rgba(255, 0, 85, 0.1) !important; color: #fff !important; }

/* Model Selector Illusion */
.model-selector-wrapper {
    position: relative;
    display: inline-block;
}

.model-badge-btn {
    cursor: pointer;
    user-select: none;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}
.model-badge-btn:hover {
    background: rgba(255,255,255,0.2);
}

.model-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: rgba(20, 20, 25, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 8px;
    width: 180px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 1;
    transform: translateY(0);
    transition: 0.2s;
}

.model-dropdown-list.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.model-option {
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
}

.model-option:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-main);
}

.model-tag {
    font-size: 10px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-cyan);
    padding: 2px 6px;
    border-radius: 10px;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* App Views & Workspace Styles */
#app-views-container {
    width: 100%;
    position: relative;
}

.app-view {
    width: 100%;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.app-view.hidden {
    display: none;
    opacity: 0;
}

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

.workspace-header {
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 15px;
}

.workspace-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 900px) {
    .workspace-grid {
        grid-template-columns: 1fr;
    }
}

.workspace-panel {
    background: linear-gradient(145deg, rgba(30, 30, 40, 0.7), rgba(15, 15, 20, 0.9));
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.08);
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), inset 0 0 20px rgba(0, 240, 255, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.workspace-panel:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), inset 0 0 30px rgba(0, 240, 255, 0.05);
}

.workspace-panel h3 {
    margin: 0 0 25px 0;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.workspace-panel h3 i {
    color: var(--neon-cyan);
    filter: drop-shadow(0 0 8px var(--glow-cyan));
}

.advanced-form label {
    display: block;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.advanced-form .modern-select, 
.advanced-form .modern-textarea {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 12px;
    color: white;
    font-family: inherit;
    margin-bottom: 16px;
    transition: 0.2s;
}

.advanced-form .modern-select:focus,
.advanced-form .modern-textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    background: rgba(0,0,0,0.3);
}

.advanced-form .settings-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.advanced-form .setting-item {
    flex: 1;
}

.modern-range {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    outline: none;
    appearance: none;
    margin-top: 10px;
}

.modern-range::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--neon-cyan);
    cursor: pointer;
    box-shadow: 0 0 10px var(--glow-cyan);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-md);
    border: 1px dashed rgba(255,255,255,0.1);
}

.empty-state i {
    font-size: 3rem;
    color: rgba(255,255,255,0.1);
    margin-bottom: 10px;
}

/* Job Cards */
.job-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(0,0,0,0.2));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.job-card:hover {
    border-color: rgba(0, 240, 255, 0.3);
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(0,0,0,0.3));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4), 0 0 15px rgba(0, 240, 255, 0.1);
}

.job-thumb {
    width: 100px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(255,255,255,0.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.job-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.job-prompt {
    font-size: 0.95rem;
    font-weight: 500;
    color: white;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
    align-items: center;
}

.job-status {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-processing {
    background: rgba(254, 202, 87, 0.1);
    color: #feca57;
    border: 1px solid rgba(254, 202, 87, 0.2);
}

.status-completed {
    background: rgba(29, 209, 161, 0.1);
    color: #1dd1a1;
    border: 1px solid rgba(29, 209, 161, 0.2);
}

.job-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-actions .icon-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 15px;
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 1000;
        background: var(--bg-surface);
        border-right: none;
        border-top: 1px solid var(--border-color);
    }
    .sidebar .logo, .sidebar .billing-section {
        display: none;
    }
    .menu {
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
        gap: 0;
        padding: 0;
    }
    .menu-item {
        flex-direction: column;
        padding: 8px;
        font-size: 0.75rem;
        margin-bottom: 0;
    }
    .menu-item i {
        margin-right: 0;
        margin-bottom: 4px;
        font-size: 20px;
    }
    .main-content {
        height: calc(100vh - 60px); /* Leave space for bottom nav */
        padding-bottom: 60px;
    }
    .workspace-grid {
        grid-template-columns: 1fr;
    }
    .tab-pills {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    .tab-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    .input-actions-row {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    .right-actions, .left-actions {
        justify-content: center;
        width: 100%;
    }
    .floating-box-container {
        padding: 0 10px;
        margin-top: -30px;
    }
    .pinterest-grid {
        column-count: 2;
    }
    .top-navbar {
        padding: 10px 15px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
}

/* --- CUSTOM CURSOR AESTHETIC --- */
body {
    cursor: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNCAyTDE4IDEyTDExLjUgMTMuNUw4IDIxTDQgMloiIGZpbGw9IiMwZjBmMTYiIHN0cm9rZT0iIzAwZjBmZiIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PC9zdmc+') 4 2, auto;
}

/* Override default cursor for interactables */
a, button, input, textarea, select, .menu-item, .model-badge-btn, .pill-btn, .action-btn, .character-avatar, .grid-item, .remix-btn, .custom-file-upload, label {
    cursor: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNCAyTDE4IDEyTDExLjUgMTMuNUw4IDIxTDQgMloiIGZpbGw9IiMwMGYwZmYiIHN0cm9rZT0iI2ZmZmZmZiIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PC9zdmc+') 4 2, pointer !important;
}

/* Photo Mode 3-Box Grid */
.photo-input-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
    margin-bottom: 16px;
}
@media (max-width: 900px) {
    .photo-input-grid { grid-template-columns: 1fr; }
}

.photo-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.photo-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 8px;
}

.photo-box-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.photo-box-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: normal;
}

.photo-upload-area {
    border: 1px dashed rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    background: rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}
.photo-upload-area:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.05);
}
.photo-upload-area i {
    font-size: 24px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.photo-file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.photo-file-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 6px;
    width: 80px;
    position: relative;
    transition: 0.2s;
    cursor: pointer;
}
.photo-file-chip:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0,240,255,0.1);
}

.photo-file-chip img {
    width: 100%;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 4px;
}

.photo-file-name-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.photo-file-name {
    font-size: 10px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    text-align: center;
}
.photo-file-edit-btn {
    font-size: 10px;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 2px;
}
.photo-file-edit-btn:hover { color: #fff; }

.photo-file-name-input {
    font-size: 10px;
    width: 100%;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--neon-cyan);
    color: white;
    text-align: center;
    border-radius: 2px;
    outline: none;
}

.photo-file-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--neon-red);
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    border: none;
    opacity: 0;
    transition: 0.2s;
}
.photo-file-chip:hover .photo-file-remove { opacity: 1; }

.photo-prompt-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.photo-prompt-textarea {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: white;
    resize: none;
    outline: none;
    font-size: 14px;
    line-height: 1.5;
    min-height: 120px;
}
.photo-prompt-hint {
    font-size: 11px;
    color: var(--neon-cyan);
    margin-top: 8px;
    font-style: italic;
}

/* Mention Dropdown */
.mention-dropdown {
    position: absolute;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid var(--neon-cyan);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 240, 255, 0.2);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    min-width: 150px;
}
.mention-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mention-item:last-child {
    border-bottom: none;
}
.mention-item:hover, .mention-item.selected {
    background: rgba(0, 240, 255, 0.1);
}
.mention-item img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
}
.mention-item span {
    font-size: 12px;
    color: var(--text-main);
}

/* Custom Lang Selector */
.custom-lang-selector {
    position: relative;
    margin-right: 10px;
    font-size: 13px;
}
.lang-selected {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--border-color);
    color: white;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    transition: 0.2s;
}
.lang-selected:hover {
    background: rgba(255,255,255,0.15);
}
.lang-options {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: #1a1a2e;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    z-index: 100;
    min-width: 80px;
    overflow: hidden;
}
.lang-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    cursor: pointer;
    color: white;
    transition: 0.2s;
}
.lang-option:hover {
    background: rgba(255,255,255,0.1);
}
.lang-selected img, .lang-option img {
    border-radius: 2px;
}

/* Gallery Hover Play */
.gallery-video-item {
    cursor: pointer;
}

/* Prompt Text Clamping */
.clamped-text {
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}
.clamped-text.expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow-y: auto;
    max-height: 300px;
    padding-right: 8px;
}

.clamped-text.expanded::-webkit-scrollbar {
    width: 6px;
}
.clamped-text.expanded::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}
.clamped-text.expanded::-webkit-scrollbar-track {
    background: transparent;
}

