/* =============================================
   AgentVerse — Demo System Styles
   ============================================= */

/* Demo Modal Overlay */
.demo-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #0f172a;
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.demo-overlay.active {
    display: flex;
    opacity: 1;
}

/* Demo Header */
.demo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.demo-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.demo-agent-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.demo-agent-name {
    font-weight: 700;
    color: #fff;
    font-size: 16px;
}

.demo-agent-badge {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    font-weight: 600;
}

.demo-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.demo-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #10b981;
}

.demo-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.demo-close {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
}

.demo-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

/* Demo Body */
.demo-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Demo Sidebar */
.demo-sidebar {
    width: 280px;
    background: rgba(15, 23, 42, 0.6);
    border-right: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow-y: auto;
}

.demo-sidebar-section {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.demo-sidebar-section h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin-bottom: 12px;
}

.demo-sidebar-section p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
}

.demo-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.demo-features-list li {
    font-size: 13px;
    color: #94a3b8;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-features-list li i {
    color: #10b981;
    font-size: 11px;
}

.demo-suggestions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.demo-suggestion-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #cbd5e1;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.demo-suggestion-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    color: #fff;
}

/* Demo Main Area */
.demo-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #1e293b;
    overflow: hidden;
}

/* ===== CHAT INTERFACE ===== */
.demo-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.demo-message {
    display: flex;
    gap: 12px;
    max-width: 80%;
    animation: msgFadeIn 0.3s ease;
}

@keyframes msgFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.demo-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.demo-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.demo-message.bot .demo-msg-avatar {
    background: rgba(99, 102, 241, 0.15);
}

.demo-message.user .demo-msg-avatar {
    background: rgba(16, 185, 129, 0.15);
    font-size: 12px;
    color: #10b981;
}

.demo-msg-content {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 12px 16px;
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.6;
}

.demo-message.user .demo-msg-content {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.2);
}

.demo-msg-content strong {
    color: #fff;
}

.demo-msg-content code {
    background: rgba(0,0,0,0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    color: #a5b4fc;
}

.demo-msg-content pre {
    background: rgba(0,0,0,0.4);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 10px 0;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #e2e8f0;
}

.demo-msg-content ul, .demo-msg-content ol {
    margin: 8px 0;
    padding-left: 20px;
}

.demo-msg-content li {
    margin: 4px 0;
}

.demo-typing {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.demo-typing span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64748b;
    animation: typingBounce 1.4s infinite;
}

.demo-typing span:nth-child(2) { animation-delay: 0.2s; }
.demo-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* Chat Input */
.demo-chat-input {
    padding: 16px 24px;
    background: rgba(15, 23, 42, 0.5);
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.demo-chat-input textarea {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    min-height: 44px;
    max-height: 120px;
    outline: none;
    transition: border-color 0.2s;
}

.demo-chat-input textarea:focus {
    border-color: rgba(99, 102, 241, 0.5);
}

.demo-chat-input textarea::placeholder {
    color: #64748b;
}

.demo-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #6366f1;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.demo-send-btn:hover {
    background: #4f46e5;
    transform: scale(1.05);
}

.demo-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===== SPLIT INTERFACE (Input / Output) ===== */
.demo-split {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.demo-split-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.demo-split-panel + .demo-split-panel {
    border-left: 1px solid rgba(255,255,255,0.06);
}

.demo-panel-header {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.demo-panel-header h3 {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-panel-header h3 i {
    color: #6366f1;
}

.demo-panel-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.demo-textarea {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.7;
    font-family: inherit;
    resize: none;
    outline: none;
}

.demo-textarea::placeholder {
    color: #475569;
}

/* Demo Action Bar */
.demo-action-bar {
    padding: 12px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(15, 23, 42, 0.3);
}

.demo-action-btn {
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.demo-action-btn.primary {
    background: #6366f1;
    color: #fff;
}

.demo-action-btn.primary:hover {
    background: #4f46e5;
}

.demo-action-btn.secondary {
    background: rgba(255,255,255,0.06);
    color: #94a3b8;
    border: 1px solid rgba(255,255,255,0.1);
}

.demo-action-btn.secondary:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.demo-select {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #e2e8f0;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

.demo-select option {
    background: #1e293b;
    color: #e2e8f0;
}

/* ===== OUTPUT RESULTS ===== */
.demo-result-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    animation: msgFadeIn 0.3s ease;
}

.demo-result-card h4 {
    font-size: 14px;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-result-card h4 i {
    color: #6366f1;
}

.demo-result-card p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
}

.demo-result-card .stat-row {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.demo-result-card .stat-item {
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    padding: 8px 14px;
    text-align: center;
}

.demo-result-card .stat-item .val {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.demo-result-card .stat-item .lbl {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

/* Progress bar */
.demo-progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.demo-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.demo-progress-fill.green { background: #10b981; }
.demo-progress-fill.blue { background: #6366f1; }
.demo-progress-fill.orange { background: #f59e0b; }
.demo-progress-fill.red { background: #ef4444; }

/* ===== DASHBOARD / CARD GRID ===== */
.demo-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.demo-mini-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s;
    cursor: default;
}

.demo-mini-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.05);
}

.demo-mini-card .card-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-mini-card .card-value {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 4px 0;
}

.demo-mini-card .card-change {
    font-size: 12px;
    color: #10b981;
}

.demo-mini-card .card-change.negative {
    color: #ef4444;
}

/* ===== TABLE ===== */
.demo-table {
    width: 100%;
    border-collapse: collapse;
}

.demo-table th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.demo-table td {
    padding: 12px;
    font-size: 13px;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.demo-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

.demo-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.demo-tag.high { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.demo-tag.medium { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.demo-tag.low { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.demo-tag.info { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; }

/* ===== CODE EDITOR ===== */
.demo-code-editor {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #e2e8f0;
    tab-size: 4;
}

/* ===== CHARTS (CSS only) ===== */
.demo-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 120px;
    padding-top: 10px;
}

.demo-bar {
    flex: 1;
    background: rgba(99, 102, 241, 0.3);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: height 0.6s ease;
    min-width: 30px;
}

.demo-bar:hover {
    background: rgba(99, 102, 241, 0.5);
}

.demo-bar .bar-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #64748b;
    white-space: nowrap;
}

.demo-bar .bar-value {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 600;
    color: #a5b4fc;
}

/* Empty State */
.demo-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #475569;
    text-align: center;
    gap: 12px;
    padding: 40px;
}

.demo-empty i {
    font-size: 48px;
    opacity: 0.3;
}

.demo-empty p {
    font-size: 14px;
    max-width: 300px;
}

/* Loading spinner */
.demo-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.demo-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== EMAIL LIST ===== */
.demo-email-list {
    display: flex;
    flex-direction: column;
}

.demo-email-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    cursor: pointer;
    transition: background 0.15s;
}

.demo-email-item:hover {
    background: rgba(255,255,255,0.03);
}

.demo-email-item.unread {
    background: rgba(99, 102, 241, 0.04);
}

.demo-email-item.unread .email-subject {
    color: #fff;
    font-weight: 600;
}

.demo-email-priority {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.demo-email-priority.high { background: #ef4444; }
.demo-email-priority.medium { background: #f59e0b; }
.demo-email-priority.low { background: #10b981; }

.demo-email-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.demo-email-content {
    flex: 1;
    min-width: 0;
}

.email-subject {
    font-size: 13px;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-preview {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.email-time {
    font-size: 11px;
    color: #475569;
    flex-shrink: 0;
}

.email-ai-tag {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    font-weight: 600;
    flex-shrink: 0;
}

/* ===== WORKFLOW ===== */
.demo-workflow {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
}

.demo-workflow-step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    animation: msgFadeIn 0.3s ease;
}

.demo-workflow-step.running {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.06);
}

.demo-workflow-step.done {
    border-color: rgba(16, 185, 129, 0.3);
}

.demo-workflow-step.error {
    border-color: rgba(239, 68, 68, 0.3);
}

.wf-step-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.wf-step-icon.pending { background: rgba(100, 116, 139, 0.2); color: #64748b; }
.wf-step-icon.running { background: rgba(99, 102, 241, 0.2); color: #818cf8; }
.wf-step-icon.done { background: rgba(16, 185, 129, 0.2); color: #10b981; }

.wf-step-info {
    flex: 1;
}

.wf-step-name {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
}

.wf-step-desc {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.wf-step-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.wf-step-status.pending { color: #64748b; }
.wf-step-status.running { color: #818cf8; animation: pulse-dot 1s infinite; }
.wf-step-status.done { color: #10b981; }

.wf-connector {
    width: 2px;
    height: 16px;
    background: rgba(255,255,255,0.08);
    margin-left: 33px;
}

/* ===== LEAD CARDS ===== */
.demo-lead-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    animation: msgFadeIn 0.3s ease;
}

.demo-lead-card + .demo-lead-card {
    margin-top: 10px;
}

.lead-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.lead-info {
    flex: 1;
}

.lead-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.lead-title {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.lead-meta {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.lead-meta span {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lead-score {
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
    padding: 4px 12px;
    border-radius: 10px;
}

.lead-score.hot { color: #10b981; background: rgba(16, 185, 129, 0.1); }
.lead-score.warm { color: #f59e0b; background: rgba(245, 158, 11, 0.1); }
.lead-score.cold { color: #64748b; background: rgba(100, 116, 139, 0.1); }

/* ===== SOCIAL POST ===== */
.demo-social-post {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    animation: msgFadeIn 0.3s ease;
}

.social-post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.social-platform-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
}

.social-platform-icon.twitter { background: #1da1f2; }
.social-platform-icon.linkedin { background: #0077b5; }
.social-platform-icon.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-platform-icon.tiktok { background: #000; }

.social-post-text {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.6;
}

.social-post-footer {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    font-size: 12px;
    color: #64748b;
}

/* ===== CV / CANDIDATE ===== */
.demo-candidate-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 16px;
    animation: msgFadeIn 0.3s ease;
}

.demo-candidate-card + .demo-candidate-card {
    margin-top: 10px;
}

.candidate-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.candidate-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.candidate-role {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.candidate-match {
    font-size: 14px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 10px;
}

.candidate-match.excellent { color: #10b981; background: rgba(16, 185, 129, 0.1); }
.candidate-match.good { color: #6366f1; background: rgba(99, 102, 241, 0.1); }

.candidate-skills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.candidate-skill {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,0.06);
    color: #94a3b8;
}

/* ===== CONTRACT ANALYSIS ===== */
.demo-clause {
    background: rgba(255,255,255,0.04);
    border-left: 3px solid;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    margin-bottom: 10px;
    animation: msgFadeIn 0.3s ease;
}

.demo-clause.risk-high { border-color: #ef4444; }
.demo-clause.risk-medium { border-color: #f59e0b; }
.demo-clause.risk-low { border-color: #10b981; }

.clause-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.clause-title {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
}

.clause-text {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.6;
}

.clause-recommendation {
    font-size: 12px;
    color: #818cf8;
    margin-top: 8px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.clause-recommendation i {
    margin-top: 2px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .demo-sidebar {
        display: none;
    }
    
    .demo-split {
        flex-direction: column;
    }
    
    .demo-split-panel + .demo-split-panel {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.06);
    }
    
    .demo-message {
        max-width: 95%;
    }
    
    .demo-header {
        padding: 10px 16px;
    }
    
    .demo-card-grid {
        grid-template-columns: 1fr;
    }
}
