/* ═══════════════════════════════════════════════════════════════════════════
   BumbleBeeCreator — Premium Dark Theme
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121c;
    --bg-card: rgba(20, 20, 35, 0.7);
    --bg-card-hover: rgba(30, 30, 50, 0.8);
    --bg-input: rgba(15, 15, 25, 0.8);
    --border: rgba(255, 255, 255, 0.06);
    --border-focus: rgba(251, 191, 36, 0.4);
    --text-primary: #f0f0f5;
    --text-secondary: #8888a0;
    --text-muted: #55556a;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --accent-dark: #d97706;
    --accent-glow: rgba(245, 158, 11, 0.15);
    --accent-glow-strong: rgba(245, 158, 11, 0.3);
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --transition: 0.2s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ─── Animated Background ───────────────────────────────────────────────── */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
    animation: glowFloat 15s ease-in-out infinite alternate;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.06), transparent 70%);
    top: -200px;
    right: -100px;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.04), transparent 70%);
    bottom: -200px;
    left: -100px;
    animation-delay: -7s;
}

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

/* ─── Screens ───────────────────────────────────────────────────────────── */
.screen {
    display: none;
    position: relative;
    z-index: 1;
}

.screen.active {
    display: flex;
}

/* ─── Glass Card ────────────────────────────────────────────────────────── */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* ═══════════════════════════════════════════════════════════════════════════
   API KEY SCREEN
   ═══════════════════════════════════════════════════════════════════════════ */
#screen-apikey {
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.apikey-card {
    width: 100%;
    max-width: 440px;
    padding: 48px 40px;
    animation: fadeInUp 0.6s ease;
}

.logo-section {
    text-align: center;
    margin-bottom: 36px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.3));
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.accent {
    color: var(--accent);
}

.logo-subtitle {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-top: 6px;
}

.apikey-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.label-hint {
    font-weight: 400;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

input[type="text"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238888a0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.input-group input {
    padding-right: 48px;
}

.btn-icon {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: color var(--transition);
}

.btn-icon:hover {
    color: var(--text-primary);
}

.apikey-hint {
    text-align: center;
    font-size: 0.8rem;
}

.apikey-hint a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

.apikey-hint a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #0a0a0f;
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.5);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-accent {
    background: var(--accent-glow-strong);
    color: var(--accent-light);
    border-color: rgba(245, 158, 11, 0.3);
}

.btn-accent:hover {
    background: rgba(245, 158, 11, 0.35);
    border-color: rgba(245, 158, 11, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 14px;
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.82rem;
}

.btn-generate {
    font-size: 1rem;
    padding: 16px 24px;
    margin-top: 8px;
}

.btn-text, .btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   TOP NAV
   ═══════════════════════════════════════════════════════════════════════════ */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
}

.nav-logo {
    font-size: 1.4rem;
}

.nav-actions {
    display: flex;
    gap: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CREATOR LAYOUT
   ═══════════════════════════════════════════════════════════════════════════ */
#screen-creator {
    flex-direction: column;
    min-height: 100vh;
}

.creator-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    flex: 1;
    min-height: 0;
}

.panel {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(100vh - 57px);
}

.panel-input {
    border-right: 1px solid var(--border);
    background: rgba(10, 10, 15, 0.5);
}

.panel-header {
    margin-bottom: 20px;
}

.panel-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.panel-title svg {
    color: var(--accent);
}

/* ─── Form ──────────────────────────────────────────────────────────────── */
.creator-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

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

.input-with-suffix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-suffix input {
    padding-right: 70px;
}

.input-suffix {
    position: absolute;
    right: 14px;
    color: var(--text-muted);
    font-size: 0.82rem;
    pointer-events: none;
}

.duration-info {
    font-size: 0.78rem;
    color: var(--accent);
    margin-top: 6px;
    opacity: 0.8;
}

/* Radio Cards */
.radio-group {
    display: flex;
    gap: 8px;
}

.radio-card {
    flex: 1;
    cursor: pointer;
}

.radio-card input {
    display: none;
}

.radio-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.radio-card input:checked + .radio-visual {
    border-color: var(--accent);
    background: var(--accent-glow);
    color: var(--accent-light);
}

.ratio-box {
    border: 2px solid currentColor;
    border-radius: 3px;
}

.ratio-16-9 {
    width: 32px;
    height: 18px;
}

.ratio-9-16 {
    width: 18px;
    height: 32px;
}

/* Checkbox Card */
.checkbox-card {
    cursor: pointer;
    display: block;
}

.checkbox-card input {
    display: none;
}

.checkbox-visual {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.checkbox-card input:checked + .checkbox-visual {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.checkbox-box {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid var(--text-muted);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    margin-top: 1px;
}

.checkbox-box svg {
    opacity: 0;
    transform: scale(0);
    transition: all var(--transition);
}

.checkbox-card input:checked + .checkbox-visual .checkbox-box {
    background: var(--accent);
    border-color: var(--accent);
}

.checkbox-card input:checked + .checkbox-visual .checkbox-box svg {
    opacity: 1;
    transform: scale(1);
    stroke: #0a0a0f;
}

.checkbox-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.checkbox-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.checkbox-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ─── Characters Panel ──────────────────────────────────────────────────── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 8px 0;
}

.section-header .chevron {
    color: var(--text-muted);
    transition: transform var(--transition);
}

.section-header.open .chevron {
    transform: rotate(180deg);
}

.characters-panel {
    overflow: hidden;
    transition: max-height var(--transition-slow), opacity var(--transition);
    max-height: 500px;
    opacity: 1;
    padding-top: 12px;
}

.characters-panel.collapsed {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
}

.characters-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.character-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    animation: fadeInUp 0.3s ease;
}

.character-chip-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.character-chip-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-glow-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--accent);
}

.character-chip-name {
    font-weight: 600;
    font-size: 0.88rem;
}

.character-chip-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.character-chip-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all var(--transition);
    font-size: 1.1rem;
    line-height: 1;
}

.character-chip-remove:hover {
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

.add-character-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.add-character-form .input-sm {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.82rem;
}

.upload-btn {
    cursor: pointer;
    position: relative;
}

.char-upload-preview {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.char-preview-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESULTS PANEL
   ═══════════════════════════════════════════════════════════════════════════ */
.panel-results {
    padding: 32px;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 400px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.88rem;
    max-width: 300px;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 400px;
}

.bee-loader {
    font-size: 3rem;
    animation: beeBounce 1.2s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes beeBounce {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    25% { transform: translateY(-15px) rotate(5deg); }
    50% { transform: translateY(0) rotate(-5deg); }
    75% { transform: translateY(-8px) rotate(3deg); }
}

.loading-state h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.loading-state p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Results Header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
}

.result-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.result-summary {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.result-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.results-actions {
    flex-shrink: 0;
}

/* ─── Scene Cards ───────────────────────────────────────────────────────── */
.scenes-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.scene-card {
    padding: 0;
    overflow: hidden;
    animation: fadeInUp 0.4s ease both;
}

.scene-card:nth-child(1) { animation-delay: 0s; }
.scene-card:nth-child(2) { animation-delay: 0.05s; }
.scene-card:nth-child(3) { animation-delay: 0.1s; }
.scene-card:nth-child(4) { animation-delay: 0.15s; }
.scene-card:nth-child(5) { animation-delay: 0.2s; }
.scene-card:nth-child(6) { animation-delay: 0.25s; }
.scene-card:nth-child(7) { animation-delay: 0.3s; }
.scene-card:nth-child(8) { animation-delay: 0.35s; }

.scene-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 20px 0;
}

.scene-number-badge {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    color: #0a0a0f;
}

.scene-meta {
    flex: 1;
}

.scene-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.scene-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 500;
}

.tag-duration {
    background: var(--accent-glow-strong);
    color: var(--accent-light);
}

.tag-camera {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
}

.tag-mood {
    background: rgba(236, 72, 153, 0.15);
    color: #f9a8d4;
}

.scene-body {
    padding: 16px 20px;
}

.scene-description {
    margin-bottom: 14px;
}

.scene-desc-text {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

.scene-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-row-full {
    grid-column: 1 / -1;
}

.detail-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Prompt Section */
.scene-prompt-section {
    border-top: 1px solid var(--border);
    margin: 0 -20px;
    padding: 0 20px;
}

.prompt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    cursor: pointer;
    user-select: none;
}

.prompt-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

.prompt-header .chevron {
    color: var(--text-muted);
    transition: transform var(--transition);
}

.prompt-header.open .chevron {
    transform: rotate(180deg);
}

.prompt-body {
    overflow: hidden;
    transition: max-height var(--transition-slow), opacity var(--transition);
    max-height: 600px;
    opacity: 1;
}

.prompt-body.collapsed {
    max-height: 0;
    opacity: 0;
}

.prompt-text {
    font-family: 'Inter', monospace;
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.2);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Rendered Image */
.scene-render-area {
    margin-top: 14px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
}

.scene-rendered-img {
    width: 100%;
    border-radius: var(--radius-sm);
    display: block;
}

/* Scene Actions */
.scene-actions {
    display: flex;
    gap: 8px;
    padding: 0 20px 16px;
    justify-content: flex-end;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════════════════ */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 20px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 380px;
}

.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--error); }
.toast-info { border-left: 3px solid var(--accent); }

@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .creator-layout {
        grid-template-columns: 1fr;
    }

    .panel-input {
        border-right: none;
        border-bottom: 1px solid var(--border);
        max-height: none;
    }

    .panel-results {
        max-height: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .results-header {
        flex-direction: column;
    }

    .scene-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .apikey-card {
        padding: 32px 24px;
    }

    .panel {
        padding: 16px;
    }

    .panel-results {
        padding: 20px 16px;
    }

    .scene-header {
        padding: 16px 16px 0;
    }

    .scene-body {
        padding: 12px 16px;
    }

    .scene-actions {
        padding: 0 16px 12px;
    }

    .scene-prompt-section {
        margin: 0 -16px;
        padding: 0 16px;
    }
}

/* ─── Scrollbar ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}
