/**
 * TASI-GPT Demo Component - Unified Styles
 * /css/tasi-gpt-demo.css
 * 
 * Used on: Homepage, /tasi-gpt page
 * Includes: Chat component, demo content styles, comparison section
 */

/* ========================================
   CHAT WRAPPER
======================================== */
.tg-demo-wrapper {
    position: relative;
    max-width: 520px;
}

/* ========================================
   LIVE TAG
======================================== */
.tg-demo-live-tag {
    position: absolute;
    top: -12px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ef4444;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.tg-live-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: tg-pulse 1s infinite;
}

@keyframes tg-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* ========================================
   CHAT BOX
======================================== */
.tg-chat {
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid #E2E8F0;
}

/* Header */
.tg-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary, #070078) 0%, #0a0a7f 100%);
    color: white;
}

.tg-chat-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.tg-avatar-pulse {
    position: absolute;
    inset: -3px;
    border: 2px solid var(--accent, #10B981);
    border-radius: 50%;
    animation: tg-pulse 2s infinite;
}

.tg-chat-title {
    flex: 1;
}

.tg-chat-title h3 {
    margin: 0 0 0.15rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.tg-chat-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
}

.tg-status-dot {
    width: 6px;
    height: 6px;
    background: var(--accent, #10B981);
    border-radius: 50%;
}

.tg-chat-indicators {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.tg-indicator {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.tg-indicator.active {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent, #10B981);
}

/* ========================================
   CHAT MESSAGES
======================================== */
.tg-chat-messages {
    height: 320px;
    overflow-y: auto;
    padding: 16px;
    background: #f8fafc;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tg-msg {
    display: flex;
    gap: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.tg-msg.show {
    opacity: 1;
    transform: translateY(0);
}

.tg-msg.user {
    flex-direction: row-reverse;
}

.tg-msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary, #070078), var(--accent, #10B981));
    color: white;
}

.tg-msg-bubble {
    max-width: 85%;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.8rem;
    line-height: 1.5;
}

.tg-msg.user .tg-msg-bubble {
    background: var(--primary, #070078);
    color: white;
    border-radius: 12px 12px 0 12px;
}

.tg-msg.bot .tg-msg-bubble {
    background: white;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Typing Indicator */
.tg-typing .tg-msg-bubble {
    padding: 14px 16px;
}

.tg-typing-dots {
    display: flex;
    gap: 4px;
}

.tg-typing-dots span {
    width: 7px;
    height: 7px;
    background: #94a3b8;
    border-radius: 50%;
    animation: tg-typing-bounce 1.4s infinite;
}

.tg-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.tg-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes tg-typing-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}

/* ========================================
   CHAT INPUT
======================================== */
.tg-chat-input {
    padding: 12px 16px;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.tg-input-wrapper {
    display: flex;
    gap: 8px;
}

.tg-input-wrapper input {
    flex: 1;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.8rem;
    outline: none;
}

.tg-input-wrapper input:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.tg-input-wrapper button {
    width: 40px;
    height: 40px;
    background: var(--primary, #070078);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tg-input-wrapper button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.tg-input-hint {
    text-align: center;
    margin: 8px 0 0;
    font-size: 0.7rem;
    color: #64748b;
}

.tg-input-hint a {
    color: var(--primary, #070078);
    font-weight: 600;
}

/* ========================================
   DATA FEED
======================================== */
.tg-data-feed {
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 14px;
}

.tg-feed-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.tg-feed-item i {
    font-size: 0.4rem;
    color: #64748b;
}

.tg-feed-item i.active {
    color: var(--accent, #10B981);
    animation: tg-pulse 1s infinite;
}

/* ========================================
   DEMO CONTENT STYLES
======================================== */

/* Demo Header */
.demo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 10px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
    border-radius: 6px 6px 0 0;
    margin: -12px -14px 10px -14px;
}

.demo-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
}

.demo-title i {
    font-size: 0.7rem;
    color: var(--primary, #070078);
}

.demo-price-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
}

.demo-price-currency {
    font-size: 0.6rem;
    font-weight: 500;
    color: #64748b;
    margin-left: 2px;
}

.demo-change {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.demo-change.up {
    background: #dcfce7;
    color: #15803d;
}

.demo-change.down {
    background: #fee2e2;
    color: #dc2626;
}

/* Metrics Grid */
.demo-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #e2e8f0;
    margin: 10px 0;
    border-radius: 6px;
    overflow: hidden;
}

.demo-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 6px;
    background: #f8fafc;
}

.demo-metric-label {
    font-size: 0.55rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.demo-metric-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
}

.demo-metric-value.up { color: #15803d; }
.demo-metric-value.down { color: #dc2626; }
.demo-metric-value.warn { color: #d97706; }

.demo-metric-tag {
    font-size: 0.5rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.demo-metric-tag.bullish { background: #dcfce7; color: #15803d; }
.demo-metric-tag.bearish { background: #fee2e2; color: #dc2626; }
.demo-metric-tag.neutral { background: #f1f5f9; color: #64748b; }
.demo-metric-tag.oversold { background: #fef3c7; color: #b45309; }

/* Support / Resistance Row */
.demo-sr-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 8px 0;
    margin: 8px 0;
    background: #fafafa;
    border-radius: 6px;
}

.demo-sr-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
}

.demo-sr-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
}

.demo-sr-icon.support {
    background: #dcfce7;
    color: #15803d;
}

.demo-sr-icon.resistance {
    background: #fee2e2;
    color: #dc2626;
}

.demo-sr-label {
    color: #64748b;
    font-weight: 500;
}

.demo-sr-value {
    font-weight: 700;
    color: #0f172a;
}

/* Moving Averages Table */
.demo-ma-table {
    margin: 10px 0;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.demo-ma-header {
    display: grid;
    grid-template-columns: 1fr 1fr 80px;
    padding: 6px 10px;
    background: #f1f5f9;
    font-size: 0.55rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-ma-row {
    display: grid;
    grid-template-columns: 1fr 1fr 80px;
    padding: 6px 10px;
    font-size: 0.7rem;
    border-top: 1px solid #f1f5f9;
    align-items: center;
}

.demo-ma-row:first-of-type {
    border-top: none;
}

.demo-ma-row.highlight {
    background: #fffbeb;
}

.demo-ma-name {
    color: #475569;
    font-weight: 500;
}

.demo-ma-value {
    font-weight: 700;
    color: #0f172a;
}

.demo-ma-status {
    text-align: right;
}

.demo-ma-badge {
    font-size: 0.5rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}

.demo-ma-badge.below {
    background: #fee2e2;
    color: #dc2626;
}

.demo-ma-badge.above {
    background: #dcfce7;
    color: #15803d;
}

/* Trend Strength Bar */
.demo-trend {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #f8fafc;
    border-radius: 6px;
    margin: 8px 0;
}

.demo-trend-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.demo-trend-bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.demo-trend-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #fbbf24, #f97316, #ef4444);
}

.demo-trend-value {
    font-size: 0.75rem;
    font-weight: 800;
    color: #dc2626;
    min-width: 35px;
    text-align: right;
}

/* Risk Assessment */
.demo-risk-section {
    margin: 8px 0;
}

.demo-risk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}

.demo-risk-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 6px;
    border-radius: 8px;
    text-align: center;
}

.demo-risk-card i {
    font-size: 1rem;
    margin-bottom: 4px;
}

.demo-risk-card .label {
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    opacity: 0.85;
    margin-bottom: 2px;
}

.demo-risk-card .level {
    font-size: 0.75rem;
    font-weight: 800;
}

.demo-risk-card.high {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #dc2626;
    border: 1px solid #fecaca;
}

.demo-risk-card.med {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #b45309;
    border: 1px solid #fde68a;
}

.demo-risk-card.low {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.demo-risk-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.demo-risk-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 8px;
    background: #f8fafc;
    border-radius: 4px;
    font-size: 0.65rem;
    color: #475569;
    line-height: 1.4;
}

.demo-risk-item i {
    color: #94a3b8;
    font-size: 0.6rem;
    margin-top: 1px;
    flex-shrink: 0;
    width: 14px;
}

/* Sentiment Section */
.demo-sentiment {
    margin: 8px 0;
}

.demo-sent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}

.demo-sent-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.demo-sent-card .value {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.demo-sent-card .value.neutral { color: #64748b; }
.demo-sent-card .value.positive { color: #15803d; }
.demo-sent-card .value.negative { color: #dc2626; }
.demo-sent-card .value.primary { color: var(--primary, #070078); }

.demo-sent-card .label {
    font-size: 0.5rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.demo-sent-signals {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.demo-sent-signal {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

.demo-sent-signal.pos { color: #15803d; }
.demo-sent-signal.neg { color: #dc2626; }
.demo-sent-signal i { font-size: 0.55rem; }

.demo-sent-bar-container {
    margin-top: 8px;
}

.demo-sent-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.55rem;
    color: #64748b;
    margin-bottom: 3px;
}

.demo-sent-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
}

.demo-sent-bar-fill {
    height: 100%;
}

.demo-sent-bar-fill.pos { background: #22c55e; }
.demo-sent-bar-fill.neutral { background: #94a3b8; }
.demo-sent-bar-fill.neg { background: #ef4444; }

/* Insight Box */
.demo-insight {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(16, 185, 129, 0.05));
    border-left: 3px solid var(--primary, #070078);
    border-radius: 0 6px 6px 0;
}

.demo-insight i {
    color: var(--primary, #070078);
    font-size: 0.7rem;
    margin-top: 1px;
    flex-shrink: 0;
}

.demo-insight-text {
    font-size: 0.68rem;
    color: #334155;
    line-height: 1.55;
}

/* Sector Cards */
.demo-sector {
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
    margin: 6px 0;
    border-radius: 4px;
    font-size: 0.75rem;
}

.demo-sector.green {
    background: rgba(16, 185, 129, 0.1);
    border-left: 2px solid #10b981;
}

.demo-sector.red {
    background: rgba(239, 68, 68, 0.1);
    border-left: 2px solid #ef4444;
}

.demo-sector-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.demo-perf {
    font-weight: 700;
}

.demo-perf.up { color: #10b981; }
.demo-perf.down { color: #ef4444; }

.demo-sector-meta {
    font-size: 0.65rem;
    color: #64748b;
    margin-top: 2px;
}

/* Tables */
.demo-table {
    width: 100%;
    font-size: 0.75rem;
    margin: 8px 0;
    border-collapse: collapse;
}

.demo-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #f1f5f9;
}

.demo-table .up { color: #10b981; }
.demo-table .down { color: #ef4444; }

.demo-info-box {
    background: #f8fafc;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    line-height: 1.6;
}

/* Stock Cards */
.demo-stock-card {
    background: #f8fafc;
    padding: 10px;
    border-radius: 6px;
    margin: 6px 0;
}

.demo-stock-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.demo-badge-change {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

.demo-badge-change.up { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.demo-badge-change.down { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

.demo-stock-card p {
    font-size: 0.7rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* Analysis Sections */
.demo-analysis-section {
    margin: 10px 0;
    padding: 10px;
    background: #f8fafc;
    border-radius: 6px;
}

.demo-analysis-section h4 {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary, #070078);
    margin: 0 0 8px 0;
}

.demo-analysis-section ul {
    margin: 0;
    padding-left: 16px;
    font-size: 0.7rem;
    line-height: 1.6;
}

.demo-analysis-section li {
    margin-bottom: 2px;
}

.demo-summary-box {
    background: rgba(16, 185, 129, 0.08);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #10b981;
    font-size: 0.7rem;
    line-height: 1.6;
}

/* ========================================
   COMPARISON SECTION (LIGHT THEME)
======================================== */
.tg-comparison-section-light {
    background: var(--off-white, #f8fafc);
    padding: 5rem 0;
}

.tg-comparison-light {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 2rem;
    align-items: stretch;
}

.tg-compare-card-light {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.tg-compare-card-light.tg-regular-light {
    opacity: 0.85;
}

.tg-compare-card-light.tg-powered-light {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 4px 30px rgba(16, 185, 129, 0.15);
}

.tg-compare-header-light {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.tg-compare-icon-light {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.tg-compare-icon-light.bad {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.tg-compare-icon-light.good {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.tg-compare-header-light h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem;
}

.tg-compare-tag-light {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.tg-compare-tag-light.bad {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.tg-compare-tag-light.good {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

/* Brain Visual */
.tg-compare-brain-light {
    margin-bottom: 1.5rem;
}

.tg-brain-visual-light {
    text-align: center;
    margin-bottom: 1.25rem;
}

.tg-brain-core-light {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.6rem;
    font-size: 1.75rem;
    position: relative;
}

.tg-brain-visual-light.limited .tg-brain-core-light {
    background: #f1f5f9;
    color: #94a3b8;
}

.tg-brain-visual-light.powered .tg-brain-core-light {
    background: linear-gradient(135deg, #10b981, var(--primary, #070078));
    color: #fff;
}

.tg-brain-rings-light {
    position: absolute;
    inset: 0;
}

.tg-brain-core-light.active .tg-brain-rings-light span {
    position: absolute;
    inset: -8px;
    border: 2px solid #10b981;
    border-radius: 50%;
    opacity: 0;
    animation: tg-ring-pulse-light 2s infinite;
}

.tg-brain-core-light.active .tg-brain-rings-light span:nth-child(2) { animation-delay: 0.5s; }
.tg-brain-core-light.active .tg-brain-rings-light span:nth-child(3) { animation-delay: 1s; }

@keyframes tg-ring-pulse-light {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

.tg-brain-label-light {
    font-size: 0.8rem;
    color: #64748b;
}

/* Data Streams */
.tg-data-streams-light {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.tg-stream-item-light {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    font-size: 0.8rem;
    position: relative;
    overflow: hidden;
}

.tg-stream-item-light.disconnected {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 0.7rem 0.85rem;
}

.tg-stream-item-light.connected {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: 0.6rem 0.85rem;
}

.tg-stream-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.tg-stream-title {
    font-weight: 600;
    font-size: 0.8rem;
    color: #10b981;
}

.tg-stream-detail {
    font-size: 0.65rem;
    color: #64748b;
    margin-top: 0.1rem;
}

.tg-stream-flow-light {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.15), transparent);
    animation: tg-stream-flow-light 2s infinite;
}

.tg-stream-item-light:nth-child(1) .tg-stream-flow-light { animation-delay: 0s; }
.tg-stream-item-light:nth-child(2) .tg-stream-flow-light { animation-delay: 0.3s; }
.tg-stream-item-light:nth-child(3) .tg-stream-flow-light { animation-delay: 0.6s; }
.tg-stream-item-light:nth-child(4) .tg-stream-flow-light { animation-delay: 0.9s; }

@keyframes tg-stream-flow-light {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Sample Output */
.tg-sample-output-light {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
}

.tg-sample-output-light.good {
    background: rgba(16, 185, 129, 0.03);
    border-color: rgba(16, 185, 129, 0.2);
}

.tg-sample-q-light {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: #334155;
}

.tg-sample-q-light i {
    width: 24px;
    height: 24px;
    background: var(--primary, #070078);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #fff;
}

.tg-sample-a-light {
    display: flex;
    gap: 0.6rem;
}

.tg-sample-a-light > i {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    flex-shrink: 0;
}

.tg-sample-output-light.bad .tg-sample-a-light > i {
    background: #f1f5f9;
    color: #94a3b8;
}

.tg-sample-output-light.good .tg-sample-a-light > i {
    background: linear-gradient(135deg, #10b981, var(--primary, #070078));
    color: #fff;
}

.tg-sample-a-light p {
    font-size: 0.8rem;
    line-height: 1.55;
    color: #64748b;
    margin: 0;
}

.tg-sample-output-light.good .tg-sample-a-light p {
    color: #334155;
}

.tg-live {
    color: #10b981;
    font-weight: 700;
}

.tg-change-light {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
}

.tg-change-light.up {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

/* VS Divider */
.tg-vs-light {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tg-vs-light span {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary, #070078), #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(7, 0, 120, 0.25);
}

/* Comparison CTA */
.tg-comparison-cta-light {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1100px) {
    .tg-comparison-light {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tg-vs-light {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
}

@media (max-width: 768px) {
    .tg-demo-wrapper {
        max-width: 100%;
    }
    
    .tg-chat-messages {
        height: 280px;
    }
    
    .tg-chat-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .tg-chat-indicators {
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
    }
    
    .demo-metrics {
        gap: 1px;
    }
    
    .demo-metric {
        padding: 6px 4px;
    }
    
    .demo-metric-value {
        font-size: 0.85rem;
    }
    
    .demo-risk-grid {
        gap: 4px;
    }
    
    .demo-risk-card {
        padding: 6px 4px;
    }
    
    .demo-sent-grid {
        gap: 4px;
    }
    
    .tg-stream-detail {
        font-size: 0.6rem;
    }
    
    .tg-stream-title {
        font-size: 0.75rem;
    }
    
    .tg-comparison-cta-light {
        flex-direction: column;
        align-items: center;
    }
    
    .tg-comparison-cta-light .btn-primary,
    .tg-comparison-cta-light .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .demo-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .demo-price-group {
        width: 100%;
        justify-content: space-between;
    }
}