
/* ============================================
   NEURO AGENT — Distinctive Chat Design
   Aesthetic: Dark terminal / neural network
   Font: JetBrains Mono for agent, system for UI
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700&display=swap');

/* === AGENT SCREEN === */
#agent-screen { display: flex; flex-direction: column; height: 100vh; background: #08080c; }
#agent-screen .header { background: transparent; border-bottom: 1px solid rgba(230,57,70,0.15); }

.agent-header { display: flex; align-items: center; padding: 14px 16px; gap: 12px; }
.agent-title { display: flex; align-items: center; gap: 12px; flex: 1; }
.agent-logo { 
    width: 36px; height: 36px; border-radius: 10px; 
    background: linear-gradient(135deg, #e63946 0%, #a8001e 100%);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 20px rgba(230,57,70,0.3);
    position: relative;
}
.agent-logo::after {
    content: ''; position: absolute; inset: -2px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(230,57,70,0.4), transparent);
    z-index: -1; filter: blur(4px);
}
.agent-logo svg { color: #fff; }
.agent-title h1 { font-family: 'Outfit', sans-serif; font-size: 1.05rem; font-weight: 600; letter-spacing: 0.02em; color: #f0f0f0; margin: 0; }
.agent-subtitle { font-family: 'JetBrains Mono', monospace; font-size: .65rem; color: #e63946; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
.agent-clear-btn { 
    width: 32px; height: 32px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08);
    background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: all 0.2s;
}
.agent-clear-btn:hover { border-color: #e63946; }
.agent-clear-btn svg { color: #666; width: 16px; height: 16px; }

/* Chat area */
.agent-chat { 
    flex: 1; overflow-y: auto; padding: 16px 14px 140px;
    display: flex; flex-direction: column; gap: 6px;
    scroll-behavior: smooth;
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(230,57,70,0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(230,57,70,0.03) 0%, transparent 50%),
        #08080c;
}

/* Chat rows */
.chat-row { 
    display: flex; align-items: flex-end; gap: 8px; max-width: 88%;
    animation: msgIn 0.3s ease-out both;
}
.chat-row.from-user { align-self: flex-end; flex-direction: row-reverse; }
.chat-row.from-neuro { align-self: flex-start; }

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

/* Avatars */
.msg-avatar { 
    width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Outfit', sans-serif; font-size: .7rem; font-weight: 600;
}
.neuro-av { 
    background: linear-gradient(135deg, #e63946, #a8001e); color: #fff;
    box-shadow: 0 2px 8px rgba(230,57,70,0.25);
}
.user-av { 
    background: #1a1a2e; color: #888; border: 1px solid rgba(255,255,255,0.08);
}

/* Bubbles */
.chat-row .chat-bubble { 
    padding: 10px 14px; border-radius: 14px;
    font-family: 'Outfit', sans-serif; font-size: .88rem; line-height: 1.55;
    word-wrap: break-word; position: relative;
}
.from-neuro .chat-bubble { 
    background: #111118; color: #d4d4d8;
    border: 1px solid rgba(255,255,255,0.05);
    border-bottom-left-radius: 4px;
}
.from-user .chat-bubble { 
    background: linear-gradient(135deg, #e63946, #c1121f);
    color: #fff; border-bottom-right-radius: 4px;
    box-shadow: 0 2px 12px rgba(230,57,70,0.2);
}
.from-neuro .chat-bubble strong { color: #e63946; font-weight: 600; }

/* Typing indicator */
.typing-bubble { 
    display: flex; gap: 5px; padding: 14px 18px !important;
    background: #111118 !important;
}
.typing-dot { 
    width: 6px; height: 6px; border-radius: 50%; background: #e63946;
    animation: typePulse 1.4s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typePulse {
    0%, 60%, 100% { opacity: 0.2; transform: scale(0.8); }
    30% { opacity: 1; transform: scale(1); }
}

/* Cart action button in chat */
.agent-cart-action { margin-top: 10px; }
.agent-cart-btn { 
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 8px;
    background: rgba(230,57,70,0.15); border: 1px solid rgba(230,57,70,0.3);
    color: #e63946; font-family: 'Outfit', sans-serif; font-size: .82rem; font-weight: 500;
    cursor: pointer; transition: all 0.2s;
}
.agent-cart-btn:hover { background: rgba(230,57,70,0.25); }

/* Input bar */
.agent-input-bar { 
    position: fixed; bottom: 70px; left: 0; right: 0;
    display: flex; gap: 8px; padding: 10px 14px;
    background: rgba(8,8,12,0.95); backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.05);
    z-index: 100;
}
.agent-input-bar textarea { 
    flex: 1; background: #111118; border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; padding: 10px 14px; color: #e0e0e0;
    font-family: 'Outfit', sans-serif; font-size: .88rem;
    resize: none; max-height: 120px; transition: border-color 0.2s;
}
.agent-input-bar textarea:focus { outline: none; border-color: rgba(230,57,70,0.4); }
.agent-input-bar textarea::placeholder { color: #444; }
.agent-send-btn { 
    width: 42px; height: 42px; border-radius: 10px;
    background: linear-gradient(135deg, #e63946, #a8001e);
    border: none; display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0; transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(230,57,70,0.3);
}
.agent-send-btn:active { transform: scale(0.95); }
.agent-send-btn svg { width: 18px; height: 18px; color: #fff; }


/* ============================================
   ADMIN PANEL — Clean Dashboard
   ============================================ */

#admin-screen { background: #08080c; }
#admin-screen .header { background: transparent; border-bottom: 1px solid rgba(255,255,255,0.06); }
#admin-screen .header h1 { font-family: 'Outfit', sans-serif; }

.admin-content { 
    padding: 16px; padding-bottom: 100px;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    max-height: calc(100vh - 120px);
}

/* Stats cards */
.admin-stats { 
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px;
}
.stat-card { 
    background: #111118; border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px; padding: 14px; text-align: center;
}
.stat-card.accent { 
    background: linear-gradient(135deg, rgba(230,57,70,0.12), rgba(230,57,70,0.04));
    border-color: rgba(230,57,70,0.2);
}
.stat-val { 
    font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 700; color: #f0f0f0;
}
.stat-card.accent .stat-val { color: #e63946; }
.stat-label { 
    font-family: 'JetBrains Mono', monospace; font-size: .65rem; color: #666;
    text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px;
}

/* Admin sections */
.admin-section { margin-bottom: 20px; }
.admin-section-header { 
    display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
    padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.admin-section-header svg { color: #e63946; }
.admin-section-header h3 { 
    font-family: 'Outfit', sans-serif; font-size: .9rem; font-weight: 600; color: #d4d4d8; margin: 0;
}

/* Admin items */
.admin-item { 
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 12px; background: #111118; border: 1px solid rgba(255,255,255,0.04);
    border-radius: 10px; margin-bottom: 6px; transition: border-color 0.2s;
}
.admin-item:hover { border-color: rgba(255,255,255,0.1); }
.admin-item-info { flex: 1; min-width: 0; }
.admin-item-info strong { 
    display: block; font-family: 'Outfit', sans-serif; font-size: .82rem; color: #e0e0e0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin-item-info span { font-size: .72rem; color: #666; }
.admin-item-actions { display: flex; gap: 4px; }
.admin-btn-sm { 
    width: 30px; height: 30px; border-radius: 7px; border: 1px solid rgba(255,255,255,0.06);
    background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.admin-btn-sm svg { color: #888; }
.admin-btn-sm:hover { border-color: rgba(255,255,255,0.15); }
.admin-btn-sm:hover svg { color: #e0e0e0; }
.admin-btn-sm.danger:hover { border-color: rgba(230,57,70,0.4); }
.admin-btn-sm.danger:hover svg { color: #e63946; }

.admin-status { 
    font-family: 'JetBrains Mono', monospace; font-size: .68rem; padding: 3px 8px;
    border-radius: 6px; letter-spacing: 0.03em;
}
.admin-status.paid { background: rgba(76,175,80,0.12); color: #4caf50; }
.admin-status.pending { background: rgba(255,152,0,0.12); color: #ff9800; }

.admin-empty { color: #444; font-size: .82rem; font-style: italic; padding: 8px 0; }

/* Admin textarea */
.admin-textarea { 
    width: 100%; background: #111118; border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px; padding: 10px 14px; color: #d4d4d8;
    font-family: 'Outfit', sans-serif; font-size: .85rem; resize: vertical;
    box-sizing: border-box; margin-bottom: 8px;
}
.admin-textarea:focus { outline: none; border-color: rgba(230,57,70,0.3); }

.admin-action-btn { 
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 8px;
    background: linear-gradient(135deg, #e63946, #a8001e);
    border: none; color: #fff; font-family: 'Outfit', sans-serif; font-size: .82rem;
    font-weight: 500; cursor: pointer; transition: all 0.2s;
}
.admin-action-btn:active { transform: scale(0.97); }

.admin-add-row { 
    display: flex; gap: 6px; margin-top: 8px;
}
.admin-add-row input { 
    flex: 1; background: #111118; border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px; padding: 8px 12px; color: #d4d4d8;
    font-family: 'Outfit', sans-serif; font-size: .82rem;
}
.admin-add-row input:focus { outline: none; border-color: rgba(230,57,70,0.3); }
.admin-add-btn { 
    width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
    background: rgba(230,57,70,0.15); border: 1px solid rgba(230,57,70,0.3);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: all 0.2s;
}
.admin-add-btn svg { color: #e63946; }
.admin-add-btn:hover { background: rgba(230,57,70,0.25); }

/* Admin form */
.admin-form { padding: 16px; }
.admin-form label { 
    display: block; font-family: 'JetBrains Mono', monospace; font-size: .7rem; 
    color: #666; margin: 14px 0 4px; text-transform: uppercase; letter-spacing: 0.05em;
}
.admin-form input, .admin-form textarea, .admin-form select { 
    width: 100%; background: #111118; border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px; padding: 10px 12px; color: #d4d4d8;
    font-family: 'Outfit', sans-serif; font-size: .88rem; box-sizing: border-box;
}
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus { 
    outline: none; border-color: rgba(230,57,70,0.3); 
}
.admin-form textarea { resize: vertical; font-family: inherit; }
.admin-form select { appearance: none; }
.admin-form-row { display: flex; gap: 16px; margin-top: 10px; }
.admin-form-row label { 
    display: flex; align-items: center; gap: 6px; font-size: .82rem; color: #aaa;
    text-transform: none; letter-spacing: 0;
}

/* Description preview */
.desc-preview { 
    margin-top: 8px; padding: 12px; background: #0a0a10; border: 1px solid rgba(255,255,255,0.04);
    border-radius: 8px; font-size: .85rem; color: #999; min-height: 40px;
}

/* === DESCRIPTION FORMATTING (product page) === */
.desc-heading {
    color: #e63946; font-weight: 700; font-size: 1.3rem;
    display: block; margin: 14px 0 5px; line-height: 1.3;
    letter-spacing: -0.01em;
}
.product-details .description { line-height: 1.65; color: #bbb; font-size: .9rem; }
