/* =========================================
   AI PROMPT GENERATOR PRO – Premium Styles
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* === CSS VARIABLES === */
:root {
    --bg-color: #0a0f1e;
    --bg-secondary: #0f172a;
    --card-bg: rgba(15, 23, 42, 0.85);
    --card-border: rgba(99, 102, 241, 0.2);
    --card-border-hover: rgba(99, 102, 241, 0.5);

    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.3);

    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-cyan: #06b6d4;

    --text-main: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --success: #10b981;
    --warning: #f59e0b;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(99, 102, 241, 0.1);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Animated background gradient */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

/* === HEADER === */
.app-header {
    padding: 2.5rem 1.5rem 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
}

.header-content {}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.logo-icon {
    color: var(--primary);
    font-size: 1.2em;
    animation: spin-logo 8s linear infinite;
}

@keyframes spin-logo {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.logo-accent {
    background: linear-gradient(135deg, var(--primary), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* === MAIN CONTAINER === */
.main-container {
    flex: 1;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* === CARDS === */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.card:hover {
    border-color: var(--card-border-hover);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.card-icon { font-size: 1.3rem; }

.card-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    flex: 1;
}

.card-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.card-desc a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: var(--transition);
}
.card-desc a:hover { text-decoration: underline; }

/* === API KEY CARD === */
.input-row {
    display: flex;
    gap: 0.5rem;
}

.api-input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    font-family: inherit;
    transition: var(--transition);
}

.api-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.api-input::placeholder { color: var(--text-muted); }

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent-purple));
    color: #fff;
    padding: 0.85rem 2rem;
    width: 100%;
    font-size: 1rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px var(--primary-glow);
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}

.primary-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    opacity: 0;
    transition: var(--transition);
}

.primary-btn:hover::before { opacity: 1; }
.primary-btn:active { transform: scale(0.98); }
.primary-btn .btn-icon { position: relative; z-index: 1; }
.primary-btn span:last-child { position: relative; z-index: 1; }

.secondary-btn {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border: 1px solid var(--card-border);
    padding: 0.7rem 1.5rem;
}
.secondary-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
}

.outline-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--card-border);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}
.outline-btn:hover {
    color: var(--text-main);
    border-color: var(--text-secondary);
    background: rgba(255,255,255,0.05);
}

.icon-btn {
    background: rgba(255,255,255,0.05);
    color: var(--text-secondary);
    border: 1px solid var(--card-border);
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
}
.icon-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-main);
}

/* === UPLOAD AREA === */
.upload-area {
    border: 2px dashed var(--card-border);
    border-radius: var(--radius-md);
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--primary);
    background: var(--primary-glow);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-align: center;
    padding: 1.5rem;
    pointer-events: none;
}

.upload-icon { font-size: 2.5rem; }
.upload-placeholder p { font-size: 0.95rem; font-weight: 500; color: var(--text-secondary); }
.upload-hint { font-size: 0.78rem; color: var(--text-muted); }

.upload-preview {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    max-height: 380px;
    display: block;
    background: rgba(0,0,0,0.3);
}

.upload-area.has-image {
    min-height: unset;
    align-items: flex-start;
}

.upload-area.has-image .upload-placeholder { display: none; }

/* === CLOTHING MULTI-SLOT GRID === */
.clothing-slots-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-top: 0.5rem;
}

.clothing-slot {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.clothing-slot-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.clothing-slot .upload-area {
    min-height: 140px;
}

.clothing-slot .upload-icon { font-size: 1.8rem; }
.clothing-slot .upload-placeholder p { font-size: 0.82rem; }

@media (max-width: 480px) {
    .clothing-slots-grid { grid-template-columns: 1fr; }
}

/* === CLOTHING OPTIONS === */
.clothing-options-section {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
}

.clothing-options-section h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.radio-group { display: flex; flex-direction: column; gap: 0.6rem; }

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
}
.radio-option:hover { color: var(--text-main); }
.radio-option input[type="radio"] { display: none; }

.radio-custom {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    display: inline-block;
    flex-shrink: 0;
    position: relative;
    transition: var(--transition);
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: white;
}

/* === PROCESSING CARD === */
.processing-card { text-align: center; }
.processing-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}
.processing-inner p { font-size: 1rem; font-weight: 600; color: var(--text-main); }
.processing-inner span { font-size: 0.85rem; color: var(--text-secondary); }

.spinner {
    width: 52px;
    height: 52px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* === RESULTS CARD === */
.results-card {}

.prompt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.prompt-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: var(--transition);
    animation: fadeInUp 0.4s ease both;
}

.prompt-card:hover {
    border-color: var(--card-border-hover);
    background: rgba(255,255,255,0.05);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.prompt-card:nth-child(2) { animation-delay: 0.07s; }
.prompt-card:nth-child(3) { animation-delay: 0.14s; }
.prompt-card:nth-child(4) { animation-delay: 0.21s; }

.prompt-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.prompt-label-icon { font-size: 1.1rem; }

.prompt-card-header h3 {
    flex: 1;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.prompt-textarea {
    width: 100%;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.65;
    padding: 0.75rem;
    resize: vertical;
    min-height: 140px;
    transition: var(--transition);
}

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

.prompt-textarea.fade-in {
    animation: fadeInUp 0.4s ease;
}

/* === GENERATE AGAIN ROW === */
.generate-again-row {
    margin-top: 1.25rem;
    display: flex;
    justify-content: center;
}

/* === TOAST NOTIFICATION === */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--success);
    color: #fff;
    padding: 0.7rem 1.4rem;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.35);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
    opacity: 0;
    z-index: 9999;
    white-space: nowrap;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* === PROGRESS PIPELINE === */
.pipeline-progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin: 1.5rem 0 1rem;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.pipeline-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent-pink));
    width: 0%;
    border-radius: 4px;
    box-shadow: 0 0 12px var(--primary-glow);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pipeline-steps-status {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.step-lbl {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.step-lbl.active {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary-glow);
}

.step-lbl.completed {
    color: var(--success);
}

/* === RESULTS DASHBOARD TABS === */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
}

.results-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.primary-action-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent-blue));
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}
.primary-action-btn:hover {
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.dashboard-tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.35rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.65rem 1rem;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    color: var(--text-main);
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease both;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === CONFIDENCE ACCURACY BANNER === */
.confidence-banner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.confidence-icon {
    font-size: 1.6rem;
}

.confidence-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.confidence-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
}

.confidence-bar-wrapper {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.confidence-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--success));
    width: 0%;
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.confidence-score-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--success);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

/* === STRUCTURED GRID CARDS === */
.structured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.meta-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: var(--transition);
}

.meta-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

.meta-card-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.meta-icon {
    font-size: 0.95rem;
}

.meta-confidence {
    margin-left: auto;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.meta-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
    word-break: break-word;
}

/* === COLOR PALETTE EXTRACTION === */
.color-palette-section {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.color-palette-section h3 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.palette-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1.1rem;
}

.palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.color-swatch-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.color-swatch-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: scale(1.02);
}

.color-swatch-block {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.color-swatch-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.color-swatch-hex {
    font-size: 0.85rem;
    font-weight: 700;
    font-family: monospace;
    color: var(--text-main);
}

.color-swatch-role {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* === MULTI-AI OPTIMIZER LAYOUT === */
.multi-ai-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.25rem;
    min-height: 480px;
}

.ai-model-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ai-model-btn {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    padding: 1rem;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: var(--transition);
}

.ai-model-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(99, 102, 241, 0.2);
}

.ai-model-btn.active {
    background: rgba(99, 102, 241, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
}

.model-badge {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: 40px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.model-badge.gemini { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.model-badge.gpt { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.model-badge.flux { background: rgba(236, 72, 153, 0.15); color: #f472b6; }
.model-badge.midjourney { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.model-badge.imagen { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.model-badge.recraft { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }

.model-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.ai-model-btn.active .model-desc {
    color: var(--text-secondary);
}

.ai-prompt-display {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.display-header h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.optimized-textarea {
    background: rgba(0,0,0,0.3);
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.7;
    min-height: 200px;
}

.negative-prompt-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.negative-textarea {
    background: rgba(220, 53, 69, 0.03);
    border-color: rgba(220, 53, 69, 0.15);
    font-family: inherit;
    font-size: 0.85rem;
    min-height: 60px;
    color: #fca5a5;
}

/* === APP FOOTER & UTILITIES === */
.app-footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.hidden { display: none !important; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .multi-ai-layout {
        grid-template-columns: 1fr;
    }
    .ai-model-list {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        flex-wrap: nowrap;
    }
    .ai-model-btn {
        flex-shrink: 0;
        width: 170px;
    }
}

@media (max-width: 600px) {
    .main-container { padding: 1.25rem 1rem 3rem; }
    .card { padding: 1.25rem; }
    .prompt-grid { grid-template-columns: 1fr; }
    .card-header { gap: 0.5rem; }
    .primary-btn { font-size: 0.95rem; }
    .results-header { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
    .dashboard-tabs { flex-direction: column; }
    .structured-grid { grid-template-columns: 1fr; }
}

