:root {
    /* Color Palette - Deep Space & Magic Blue */
    --bg-app: #0f172a;
    --bg-panel: rgba(15, 23, 42, 0.85); /* Slightly less transp. for readability */
    --bg-card: rgba(51, 65, 85, 0.4);
    
    --border-color: rgba(148, 163, 184, 0.15);
    --border-highlight: rgba(148, 163, 184, 0.3);

    --primary: #3b82f6; /* Bright Blue */
    --primary-hover: #2563eb;
    --primary-glow: rgba(59, 130, 246, 0.4);

    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;

    --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-main);
    background-color: var(--bg-app);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
}

/* Background Ambient Glow */
.app-background {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 10% 20%, #1e1b4b 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, #172554 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    backdrop-filter: blur(0px); /* Performance fix for heavy pages */
}

/* --- Drag & Drop Overlay --- */
.drop-zone-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.95);
    z-index: 200; /* Above everything */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.2s;
}
.drop-zone-overlay[hidden] {
    display: none !important;
}

.drop-message {
    text-align: center;
    color: var(--primary);
    animation: bounceIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.drop-message .icon-lg {
    font-size: 64px;
    margin-bottom: 16px;
    display: block;
}

.drop-message h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: var(--text-main);
}

/* --- Header --- */
.app-header {
    height: 60px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.9);
    flex-shrink: 0;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    user-select: none;
}

.brand-icon {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 10px var(--primary-glow);
}
.brand-icon svg { width: 20px; height: 20px; }

.header-text h1 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.02em;
}

.version-badge {
    font-size: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-muted);
}

.header-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.divider-vertical {
    width: 1px;
    height: 20px;
    background: var(--border-color);
    margin: 0 8px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    font-family: var(--font-main);
    text-decoration: none;
    user-select: none;
    height: 36px;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}
.btn-outline:hover {
    border-color: var(--text-muted);
    color: var(--text-main);
    background: rgba(255,255,255,0.03);
}

.btn-danger-ghost {
    background: transparent;
    color: var(--danger);
    padding: 0;
    width: 36px;
}
.btn-danger-ghost:hover {
    background: rgba(239, 68, 68, 0.15);
}

.file-input-wrapper {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.file-input-wrapper input {
    position: absolute;
    left: 0; top: 0; opacity: 0; width: 0; height: 0;
}

.btn-group {
    display: flex;
    gap: 4px;
}

/* Focus visibility */
.btn:focus-visible,
.icon-btn:focus-visible,
.pill:focus-visible,
.mini-action-btn:focus-visible,
.text-input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* --- Layout --- */
.main-layout {
    display: flex;
    flex: 1;
    overflow: hidden; /* Prevent body scroll */
}

/* --- Left Panel (Gallery) --- */
.panel-left {
    width: 340px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.6);
    flex-shrink: 0;
}

.gallery-toolbar {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.8);
    flex-shrink: 0;
}

.section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
}

.nav-arrows {
    display: flex;
    gap: 4px;
}

.icon-btn {
    width: 28px; height: 28px;
    display: flex;
    align-items: center; justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}
.icon-btn:hover { color: var(--text-main); border-color: var(--text-muted); }

.image-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Fancy Scrollbar Firefox */
    scrollbar-width: thin;
    scrollbar-color: var(--border-highlight) transparent;
}

/* Fancy Scrollbar Webkit */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-highlight); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, 0.5); }

.image-item {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.1s, border-color 0.1s;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.image-item:hover {
    border-color: var(--text-muted);
}

.image-item img {
    width: 100%;
    height: 160px; /* Consistent height */
    object-fit: contain;
    background: rgba(0,0,0,0.2);
    padding: 8px;
    display: block;
}

/* Active State */
.image-item.current {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary), 0 4px 12px rgba(0,0,0,0.3);
    background: rgba(59, 130, 246, 0.05);
    z-index: 1;
}

.thumb-caption {
    padding: 8px 10px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    background: rgba(15, 23, 42, 0.4);
}
.image-item.current .thumb-caption { color: var(--primary); font-weight: 500; }

.image-remove-btn {
    position: absolute;
    top: 6px; right: 6px;
    width: 22px; height: 22px;
    border-radius: 4px;
    background: rgba(0,0,0,0.7);
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    line-height: 1;
    z-index: 5;
}
.image-item:hover .image-remove-btn { opacity: 1; }
.image-remove-btn:hover { background: var(--danger); color: white; border-color: var(--danger); }

/* Overlay buttons on thumbnails (Copy/Paste) */
.thumb-overlay-actions {
    position: absolute;
    bottom: 36px; /* Above caption */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 4;
}
.image-item:hover .thumb-overlay-actions {
    opacity: 1;
    pointer-events: auto;
}

.mini-action-btn {
    width: 28px; height: 28px;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.1s;
}
.mini-action-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}
.mini-action-btn svg { width: 14px; height: 14px; }


/* --- Right Panel (Editor) --- */
.panel-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-panel);
    overflow: hidden;
}

.editor-header {
    padding: 16px 24px;
    background: rgba(15, 23, 42, 0.6);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-shrink: 0;
}

.info-card { flex: 1; overflow: hidden; }

.file-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meta-badges {
    display: flex;
    gap: 8px;
    align-items: center;
}

.badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    color: var(--text-muted);
    font-family: monospace;
    border: 1px solid transparent;
}
.badge-sub { background: transparent; border: 1px solid var(--border-color); }

.action-bar {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.btn-small {
    padding: 0 12px;
    font-size: 12px;
    height: 28px;
}

.btn-secondary {
    background: rgba(255,255,255,0.08);
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.05);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); }

/* --- Editor Content --- */
.editor-content {
    flex: 1;
    display: flex;
    flex-direction: column; /* Changed to column to allow children to grow */
    overflow-y: hidden; /* Hide scroll on parent, let children scroll */
    padding: 24px;
    gap: 24px;
}

.tag-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 20px 20px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    flex-shrink: 0; /* By default, don't shrink */
}

/* NEW: The expanding section for Role & Title */
.tag-section.expanded-section {
    flex: 1; /* Take up all remaining space */
    min-height: 0; /* Required for flex scrolling to work */
    display: flex;
    flex-direction: column;
}

.tag-section.expanded-section .form-group.fill-vertical {
    flex: 1;
    position: relative; /* Anchor for absolute child */
    min-height: 0;
}

/* Scroll fill for the title pills */
.scroll-fill {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow-y: auto;
    padding-right: 4px;
    /* Custom Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--border-highlight) transparent;
}

.section-title {
    position: absolute;
    top: -10px; left: 16px;
    background: #172033; /* Slightly lighter than pure BG to ensure readability */
    padding: 0 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
}

/* Hint Text Styles */
.hint-text {
    font-size: 12px;
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.4);
    border-left: 3px solid var(--primary);
    padding: 10px 12px;
    margin-top: 8px;
    margin-bottom: 16px;
    border-radius: 0 4px 4px 0;
    line-height: 1.5;
}
.hint-text strong {
    color: var(--primary);
    font-weight: 600;
}

/* New Demographics Layout */
.demographics-wrapper {
    display: flex;
    gap: 24px;
}

.demographics-sidebar {
    width: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.demographics-main {
    flex: 1;
    min-width: 0;
}

/* Existing form helpers */
.form-row {
    display: flex;
    gap: 24px;
    margin-top: 16px;
}
.half { flex: 1; min-width: 0; }

.form-group label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.pill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

/* UPDATED: Card-like styles for pill groups */
.pill-group {
    width: 100%;
    margin-bottom: 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden; /* For header radius */
    display: flex;
    flex-direction: column;
}

.group-header {
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--border-color);
    padding: 6px 12px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    /* Sticky Header Magic */
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(8px);
}

.group-header span { opacity: 0.9; }

.pill-group-content {
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* 2-Column Layout for Races on wider screens */
@media (min-width: 1200px) {
    .pill-container-columns {
        display: block; /* Disable flex for column layout */
        column-count: 2;
        column-gap: 24px;
    }
    .pill-group {
        break-inside: avoid; /* Keeps headers with their pills */
        margin-bottom: 16px;
    }
    .pill-group:first-child { margin-top: 0; }
}

.scrollable-pills {
    /* Deprecated in favor of scroll-fill, but kept for compatibility if needed elsewhere */
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

/* The Pills */
.pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.1s ease;
    font-family: var(--font-main);
    user-select: none;
    margin: 2px;
}
.pill:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-main);
    border-color: var(--text-muted);
}
.pill-meta {
    font-weight: 600;
    font-size: 12px;
    padding: 6px 12px;
    margin-bottom: 8px; /* Give the 'All' pill some space */
}
.pill-selected {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}
.pill-selected:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Text Input for Export Modal */
.text-input {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 14px;
    transition: all 0.2s;
}
.text-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0,0,0,0.5);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}
.text-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

/* Toggle Switch (Compact for Toolbar) */
.toggle-switch {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
}
.toggle-switch.compact-toggle {
    margin-right: 12px;
}
.toggle-switch input { display: none; }
.slider {
    width: 32px; height: 18px; /* Compact Size */
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    position: relative;
    transition: 0.2s;
    border: 1px solid var(--border-color);
}
.slider::before {
    content: "";
    position: absolute;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    top: 2px; left: 2px;
    transition: 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
}
input:checked + .slider {
    background: var(--primary);
    border-color: var(--primary);
}
input:checked + .slider::before {
    transform: translateX(14px);
    background: white;
}
.label-text { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase;}

/* --- Modals --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: opacity 0.2s;
}
.modal-overlay[hidden] {
    display: none !important;
}

.modal-content {
    background: #1e293b;
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    width: 480px;
    max-width: 90%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    padding: 24px;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-main);
    display: flex; flex-direction: column;
}
.modal-wide { width: 600px; }

.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px;
    flex-shrink: 0;
}
.modal-header h3 { margin: 0; font-size: 20px; color: var(--text-main); }
.close-modal {
    background: transparent; border: none; font-size: 20px;
    color: var(--text-muted); cursor: pointer;
}
.close-modal:hover { color: var(--text-main); }

.modal-body {
    overflow-y: auto;
    max-height: 70vh;
}

/* Help Content */
.help-section { margin-bottom: 24px; }
.help-section h4 { 
    margin: 0 0 8px 0; 
    color: var(--primary); 
    font-size: 14px; 
    text-transform: uppercase; 
    letter-spacing: 0.05em;
}
.help-section p { 
    margin: 0 0 12px 0; 
    font-size: 14px; 
    line-height: 1.6; 
    color: #cbd5e1; 
}

/* NEW: Help list styling (since HTML is now valid) */
.help-body ul {
    margin: 0 0 12px 18px;
    padding: 0;
    color: #cbd5e1;
}
.help-body li {
    margin: 6px 0;
    line-height: 1.6;
}
.help-body li::marker {
    color: var(--text-muted);
}

.highlight-box {
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid var(--warning);
    padding: 12px;
    border-radius: 0 4px 4px 0;
    color: #fcd34d !important;
}
.highlight-box strong { color: #fff; }
.highlight-box code { 
    background: rgba(0,0,0,0.3); 
    padding: 2px 4px; 
    border-radius: 4px; 
    font-family: monospace; 
}

/* Import UI */
.import-options { display: grid; gap: 12px; }
.import-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: left;
    color: var(--text-main);
    transition: all 0.2s;
    width: 100%;
}
.import-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.import-card .text strong { display: block; margin-bottom: 4px; font-size: 15px;}
.import-card .text span { font-size: 13px; color: var(--text-muted); }

.import-sub-panel {
    margin-top: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    animation: slideDown 0.3s ease;
}
.import-sub-panel h4 { margin: 0 0 12px 0; font-size: 13px; color: var(--text-muted); text-transform: uppercase; }

.file-input-stack { display: flex; flex-direction: column; gap: 10px; }
.file-label-block {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}
.file-label-block:hover { border-color: var(--text-muted); background: rgba(0,0,0,0.4); }

/* --- Toasts & Status --- */
.toast-status {
    position: fixed;
    bottom: 24px; right: 24px;
    background: #334155;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    pointer-events: none;
    z-index: 50;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center;
}
.toast-status.pop { transform: scale(1.05); }

.toast-warning {
    position: fixed;
    bottom: 90px; left: 50%;
    transform: translateX(-50%);
    background: #451a03;
    border: 1px solid #d97706;
    color: #fef3c7;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    z-index: 60;
    width: 440px;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast-content { display: flex; gap: 16px; margin-bottom: 16px; }
.warning-icon { font-size: 24px; line-height: 1;}
.warning-details strong { display: block; margin-bottom: 6px; color: #fbbf24; font-size: 15px;}
.warning-details div { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.9); }

.toast-actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.countdown { font-size: 12px; color: rgba(251, 191, 36, 0.8); font-variant-numeric: tabular-nums; }
.btn-warning {
    background: #d97706; color: #fff; border: none;
}
.btn-warning:hover { background: #b45309; }
.btn-warning:disabled { background: #78350f; color: #92400e; cursor: not-allowed; opacity: 0.7; }

/* Empty state */
.empty-state-message {
    text-align: center;
    margin-top: 100px;
    color: var(--text-muted);
    user-select: none;
}
.empty-state-message p { margin: 0; font-size: 16px; font-weight: 500; }
.empty-state-message .sub { font-size: 13px; opacity: 0.6; margin-top: 8px; }

/* Animations */
@keyframes slideDown { from {opacity:0; transform:translateY(-10px);} to {opacity:1; transform:translateY(0);} }
@keyframes slideUp { from {opacity:0; transform:translateY(20px);} to {opacity:1; transform:translateY(0);} }
@keyframes bounceIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
