:root {
    --bg-dark: #0a0a0c;
    --bg-panel: rgba(20, 20, 25, 0.65);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-main: #f4f4f6;
    --text-muted: #8b8b9a;
    --primary: #FF5A1F; /* From recent requested branding orange */
    --primary-glow: rgba(255, 90, 31, 0.4);
    --secondary: #24242d;
    --success: #38b000;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.background-globes {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    animation: drift 20s infinite alternate ease-in-out;
}

.g1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 60%);
    top: -200px; left: -100px;
    animation-delay: 0s;
}

.g2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #8a2be2 0%, transparent 60%);
    bottom: -100px; right: -100px;
    animation-delay: -5s;
}

.g3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #3a86ff 0%, transparent 60%);
    top: 30%; left: 40%;
    opacity: 0.3;
    animation-duration: 25s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 30px) scale(1.1); }
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    margin-bottom: 2rem;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.logo-orb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF5A1F, #ff9e00);
    box-shadow: 0 0 20px var(--primary-glow);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(white, #aaaaaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.main-content {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 2rem;
    flex: 1;
}

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

.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.controls-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: fit-content;
}

.input-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: #e0e0e0;
}

.drop-zone {
    border: 2px dashed rgba(255, 90, 31, 0.3);
    border-radius: 16px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(255, 90, 31, 0.05);
}

.drop-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.upload-icon {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.drop-text {
    font-weight: 500;
}

.highlight {
    color: var(--primary);
}

.sub-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: -0.5rem;
}

.preview-chip {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-glass);
}

.preview-chip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

textarea {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: var(--text-main);
    padding: 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    height: 150px;
    resize: none;
    transition: border-color 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.example-prompts {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    background: var(--secondary);
    color: var(--text-muted);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.badge:hover {
    background: rgba(255, 90, 31, 0.1);
    color: var(--primary);
    border-color: rgba(255, 90, 31, 0.3);
}

.generate-btn {
    background: linear-gradient(135deg, #FF5A1F, #e04a11);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 4px 15px var(--primary-glow);
    font-family: inherit;
}

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

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

.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
}

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

.generate-btn.loading .btn-content {
    opacity: 0;
}
.generate-btn.loading .loader {
    display: block;
}

.results-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 400px;
}

.result-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
}

.placeholder-shapes {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.2;
}

.shape {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--text-muted);
}
.s2 { border-radius: 50%; height: 50px; margin-top: -5px; }

.result-content {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

.result-content.active {
    display: flex;
}

.ai-response-text {
    line-height: 1.6;
    color: #e0e0e0;
}

.ai-response-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    align-items: center;
}

.ai-response-images img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
