@charset "UTF-8";

/* **************************************************************************
   N AI - Modern SaaS UI/UX (TOSS Style)
   Theme: Clean Light, Solid Flat Design, Soft Shadows, Blue Accent
   ************************************************************************** */

/* --- CSS Variables --- */
:root {
    /* Base Colors */
    --bg-base: #f2f4f6; /* Toss signature light gray */
    --glass-bg: #ffffff; /* Solid pure white for cards */
    --glass-border: #e5e8eb;
    --glass-shadow: 0 8px 24px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 20px 40px -8px rgba(0, 0, 0, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.08);
    
    /* Primary / Accents (Toss Blue) */
    --accent-cyan: #3182f6;   /* Primary Blue */
    --accent-purple: #1b64da; /* Hover Darker Blue */
    --accent-blue: #e8f3ff;   /* Light Blue Background */
    --status-green: #00c853;
    --error-red: #f44336;
    
    /* Typography Colors */
    --text-main: #333d4b;
    --text-muted: #8b95a1;
    --text-dark: #191f28;
    
    /* Typography */
    --font-primary: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-xxl: 32px;
    
    /* Animation & Transitions */
    --transition-fast: 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-smooth: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ---------- Dark Theme ---------- */
body.theme-dark {
    --bg-base: #121212;
    --glass-bg: #1e1e1e;
    --glass-border: #333333;
    --text-main: #e0e0e0;
    --text-muted: #aaaaaa;
    --text-dark: #ffffff;
    --accent-cyan: #3b82f6;
    --accent-purple: #60a5fa;
    --accent-blue: rgba(59, 130, 246, 0.15);
}

/* ---------- Light Gold Theme ---------- */
body.theme-light-gold {
    --bg-base: #faf8f5;
    --glass-bg: #ffffff;
    --glass-border: #e8dfd5;
    --text-main: #4a4036;
    --text-muted: #8c7e6b;
    --text-dark: #2a2016;
    --accent-cyan: #d4af37;
    --accent-purple: #c59b27;
    --accent-blue: #fbf5e6;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    letter-spacing: -0.015em;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cdd3d9;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* --- Ambient Background Effects (Removed for Clean Theme) --- */
.ambient-bg {
    display: none !important;
}

/* --- Main Layout Wrapper --- */
.app-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-height: 100vh;
}

/* --- Header Styles --- */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow);
    position: relative;
    z-index: 1000;
}

.app-footer {
    text-align: center;
    padding: 24px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-top: auto;
    border-top: 1px solid var(--glass-border);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-blue);
    color: var(--accent-cyan);
    border-radius: var(--radius-md);
    box-shadow: none;
}

.logo-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-dark);
}

.logo-text span {
    color: var(--accent-cyan);
    font-weight: 800;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-base);
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: var(--status-green);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 200, 83, 0.4);
}

/* --- Common Buttons --- */
.primary-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--accent-cyan);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(49, 130, 246, 0.2);
}

.primary-btn:hover {
    background: var(--accent-purple);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(49, 130, 246, 0.3);
}

.primary-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(49, 130, 246, 0.2);
}

.secondary-btn {
    padding: 8px 16px;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--glass-border);
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.secondary-btn:hover {
    background: var(--bg-base);
    color: var(--text-dark);
    border-color: #d1d5db;
}

/* --- Global Form Inputs (Toss Style) --- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
.form-group textarea {
    width: 100%;
    background: var(--bg-base);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    color: var(--text-dark);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

input::placeholder,
.form-group textarea::placeholder {
    color: #b0b8c1;
}

input:focus,
select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px var(--accent-blue) !important;
}

.form-group textarea {
    resize: vertical;
    min-height: 180px;
    line-height: 1.6;
}

/* --- Landing Page Styles --- */
.landing-section {
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding: 20px 0 60px 0;
    animation: fadeIn var(--transition-smooth);
}

.hero-section {
    text-align: center;
    padding: 100px 20px;
    background: var(--glass-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
    line-height: 1.3;
    letter-spacing: -0.04em;
}

.hero-title span {
    color: var(--accent-cyan);
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
    font-weight: 500;
}

.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--glass-shadow);
    text-align: left;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-cyan);
    box-shadow: 0 12px 24px rgba(49, 130, 246, 0.08);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    background: var(--accent-blue);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-cyan);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.landing-block {
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.landing-block.alternative-bg {
    background: transparent;
}

.block-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.block-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

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

.badge-pill {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-blue);
    color: var(--accent-cyan);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 30px;
    margin-bottom: 24px;
}

.step-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.step-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: left;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

.step-card:hover {
    transform: translateY(-4px);
}

.step-num {
    width: 48px;
    height: 48px;
    background: var(--bg-base);
    color: var(--accent-cyan);
    font-size: 1.25rem;
    font-weight: 800;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.benefit-item {
    background: var(--glass-bg);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.benefit-item h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.benefit-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.tech-showcase {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    background: var(--glass-bg);
    padding: 48px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.tech-text {
    flex: 1;
    min-width: 300px;
}

.tech-text h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.tech-text p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.tech-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tech-list li {
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tech-visual {
    flex: 1;
    min-width: 300px;
}

.mockup-window {
    background: #191f28;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.mockup-header {
    background: #202632;
    padding: 12px 16px;
    display: flex;
    gap: 8px;
}

.mockup-header span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mockup-header span:nth-child(1) { background: #ff5f56; }
.mockup-header span:nth-child(2) { background: #ffbd2e; }
.mockup-header span:nth-child(3) { background: #27c93f; }

.mockup-body {
    padding: 24px;
    color: #4ade80;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.85rem;
    line-height: 1.6;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.audience-card {
    background: var(--glass-bg);
    border-left: 4px solid var(--accent-cyan);
    padding: 24px 32px;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    box-shadow: var(--glass-shadow);
}

.audience-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.audience-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.cta-section {
    text-align: center;
    background: var(--glass-bg);
    border-radius: var(--radius-xl);
    padding: 80px 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.cta-section h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

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

/* --- Main Content Layout (Grid) --- */
.main-content {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: stretch;
    flex-grow: 1;
}

/* Pipeline Sidebar Styles */
.pipeline-sidebar {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
    grid-column: 1;
    grid-row: 1 / span 2;
}
.pipeline-header {
    color: #e1b472;
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 12px;
    text-align: center;
}
.pipeline-btn-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pipeline-btn {
    background: #e5e7eb;
    color: #9ca3af;
    border: none;
    border-radius: 30px;
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
    line-height: 1.4;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pipeline-btn:hover {
    background: #d1d5db;
    color: #6b7280;
}
.pipeline-btn.has-data {
    background: var(--bg-base);
    color: var(--text-dark);
    border: 1px solid var(--glass-border);
}
.pipeline-btn.has-data:hover {
    background: #e1b472;
    color: #fff;
    border-color: #e1b472;
}
.pipeline-btn.active {
    background: #e1b472 !important;
    color: #fff !important;
    border-color: #e1b472 !important;
    box-shadow: 0 4px 12px rgba(225, 180, 114, 0.4);
}
.pipeline-btn.active:hover {
    transform: translateY(-2px);
}
.pipeline-text-only {
    background: transparent;
    color: #444;
    border: none;
    padding: 8px 24px;
    font-size: 1.1rem;
    font-weight: 800;
    text-align: left;
    line-height: 1.4;
}

/* --- Glass Panel Base (Solid Card for Toss Style) --- */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
}

/* --- Input Section (Left Panel) --- */
.input-section {
    gap: 24px;
    grid-column: 2;
    grid-row: 1;
}

.panel-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.panel-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

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

.form-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.label-badge {
    background: var(--bg-base);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* File Upload Drop Zone (Toss Style) */
.file-upload-wrapper {
    background: #fafafb;
    border: 2px dashed #d1d5db;
    border-radius: var(--radius-md);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.file-upload-wrapper:hover, .file-upload-wrapper.dragover {
    background: var(--accent-blue);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.upload-icon {
    width: 36px;
    height: 36px;
    color: var(--accent-cyan);
}

.upload-text {
    font-size: 0.95rem;
    color: var(--text-main);
}

.upload-text strong {
    color: var(--accent-cyan);
    font-weight: 700;
}

.upload-subtext {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.file-list {
    list-style: none;
    width: 100%;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* --- Output Section (Right Panel) --- */
.output-section {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow: visible;
    grid-column: 2;
    grid-row: 2;
    min-height: 400px;
}

/* Utility Hidden Class */
.hidden {
    display: none !important;
}

/* Empty State */
.empty-state {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 16px;
    opacity: 0.8;
    padding: 60px 20px;
    animation: fadeIn var(--transition-smooth);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    color: #d1d5db;
    stroke-width: 1.5;
    margin-bottom: 8px;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-muted);
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 250px;
    line-height: 1.5;
}

/* Progress Container (Toss Style) */
.progress-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    animation: slideDown var(--transition-smooth);
    box-shadow: var(--glass-shadow);
}

.progress-track {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.step-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-base);
    border: 2px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: all var(--transition-smooth);
}

.step.active .step-icon {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: #fff;
    box-shadow: 0 4px 12px rgba(49, 130, 246, 0.3);
}

.step.completed .step-icon {
    background: var(--status-green);
    border-color: var(--status-green);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
}

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
}

.step.active .step-label {
    color: var(--accent-cyan);
}

.step-line {
    flex-grow: 1;
    height: 4px;
    background: var(--glass-border);
    margin: 0 16px;
    transform: translateY(-14px);
    position: relative;
    z-index: 1;
    border-radius: 2px;
}

.step-line.active {
    background: var(--accent-cyan);
}

.progress-status-box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 24px;
}

.progress-status-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--accent-cyan);
    background: var(--accent-blue);
    padding: 10px 20px;
    border-radius: 30px; /* Chip style */
    font-weight: 700;
}

/* Result Container */
.result-container {
    display: flex;
    flex-direction: column;
    gap: 32px; /* Increased gap */
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 8px;
    animation: fadeIn var(--transition-smooth);
}

.result-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.result-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-base);
}

.result-title svg {
    width: 22px;
    height: 22px;
    color: var(--accent-cyan);
}

.content-box {
    background: var(--glass-bg); /* Clean white */
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02); /* Very subtle lift */
}

/* Markdown specific styles inside .markdown-viewer */
.markdown-viewer h1, .markdown-viewer h2, .markdown-viewer h3,
.markdown-viewer h4, .markdown-viewer h5, .markdown-viewer h6 {
    color: var(--text-dark);
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.markdown-viewer h1 { font-size: 1.6em; }
.markdown-viewer h2 { font-size: 1.4em; border-bottom: 2px solid var(--bg-base); padding-bottom: 0.4em; }
.markdown-viewer h3 { font-size: 1.2em; color: var(--accent-cyan); }

.markdown-viewer p {
    margin-bottom: 1.4em;
    color: var(--text-main);
}

.markdown-viewer ul, .markdown-viewer ol {
    margin-bottom: 1.4em;
    padding-left: 1.5em;
}

.markdown-viewer li {
    margin-bottom: 0.6em;
}

.markdown-viewer strong {
    color: var(--text-dark);
    font-weight: 700;
}

/* --- Modal & Overlays (Toss Style) --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(17, 24, 39, 0.4); /* Dim */
    backdrop-filter: blur(8px); /* Soft modern blur */
    -webkit-backdrop-filter: blur(8px);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999; 
    opacity: 1; 
    transition: opacity var(--transition-smooth); 
    padding: 24px;
}
.modal-overlay.hidden { display: none !important; opacity: 0; }

.modal-container {
    background: var(--glass-bg); 
    width: 100%; 
    max-height: 90vh;
    border-radius: var(--radius-xxl); /* Toss-like large radius */
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg); /* Deep shadow */
    display: flex; flex-direction: column; 
    overflow-y: auto; overflow-x: hidden;
    animation: scaleUp var(--transition-smooth);
}

.modal-header {
    padding: 24px 32px; 
    border-bottom: 1px solid var(--glass-border);
    display: flex; justify-content: space-between; align-items: center; 
    background: var(--glass-bg);
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h3 { 
    font-size: 1.3rem; 
    font-weight: 800; 
    color: var(--text-dark); 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    margin: 0;
}

.modal-body { 
    padding: 32px; 
    overflow-y: auto; 
    flex-grow: 1; 
    background: var(--glass-bg); 
}

.close-btn {
    background: transparent; 
    border: none;
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    color: var(--text-muted); cursor: pointer; transition: all var(--transition-fast);
}
.close-btn:hover { 
    background: var(--bg-base); 
    color: var(--text-dark); 
    transform: rotate(90deg);
}

@keyframes scaleUp { from { transform: scale(0.95) translateY(20px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* --- Pricing Card Styles --- */
.pricing-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    flex: 1;
    min-width: 260px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-cyan);
    box-shadow: 0 12px 24px rgba(49, 130, 246, 0.1);
}

.pricing-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-dark);
    text-align: center;
}

.pricing-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-cyan);
    text-align: center;
    margin: 8px 0;
}

.pricing-features {
    list-style: none;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.pricing-features li svg {
    color: var(--accent-cyan);
    flex-shrink: 0;
}

/* --- Responsive Layout --- */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    .pipeline-sidebar, .input-section, .output-section {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-desc { font-size: 1rem; }
    .hero-section { padding: 60px 20px; }
}

@media (max-width: 600px) {
    .app-wrapper {
        padding: 16px;
    }
    
    .app-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        border-radius: var(--radius-lg);
        padding: 16px;
    }

    .panel-header h2 {
        font-size: 1.3rem;
    }

    .progress-track {
        flex-direction: column;
        gap: 16px;
    }
    
    .step-line {
        width: 4px;
        height: 24px;
        margin: 0;
        transform: translateY(0);
    }

    .modal-container {
        max-height: 95vh;
        border-radius: var(--radius-lg);
    }

    .modal-header {
        padding: 16px 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .form-group textarea {
        min-height: 140px;
    }
}
```