/* INXA Intent - Modern Glassmorphism Styling */

:root {
    --bg-base: #060913;
    --bg-panel: rgba(13, 20, 38, 0.7);
    --border-color: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --text-dim: #6B7280;
    
    /* Accents */
    --accent-blue: #3b82f6;
    --accent-blue-glow: rgba(59, 130, 246, 0.25);
    --accent-green: #10b981;
    --accent-green-glow: rgba(16, 185, 129, 0.25);
    --accent-indigo: #6366f1;
    --accent-indigo-glow: rgba(99, 102, 241, 0.25);
    --accent-purple: #8b5cf6;
    --accent-purple-glow: rgba(139, 92, 246, 0.25);
    --accent-amber: #f59e0b;
    --accent-red: #ef4444;
    --accent-red-glow: rgba(239, 68, 68, 0.25);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Background floating orbs */
.glow-bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    mix-blend-mode: screen;
    animation: floatOrb 25s infinite alternate ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-indigo) 0%, rgba(99, 102, 241, 0) 70%);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-green) 0%, rgba(16, 185, 129, 0) 70%);
    bottom: -150px;
    right: -100px;
    animation-duration: 30s;
    animation-delay: -5s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.15); }
    100% { transform: translate(-30px, -20px) scale(0.9); }
}

/* Master Container */
.app-container {
    width: 100%;
    max-width: 1440px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

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

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--accent-indigo-glow);
}

.logo-mark i {
    color: #fff;
    width: 22px;
    height: 22px;
}

.brand-text h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(to right, #fff, #9ca3af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-text span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-indigo);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Identity Bar */
.active-identity-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(5px);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.red { background-color: var(--accent-red); box-shadow: 0 0 8px var(--accent-red); }
.status-dot.green { background-color: var(--accent-green); box-shadow: 0 0 8px var(--accent-green); }

.identity-text {
    font-weight: 500;
}

/* Navigation */
.app-nav {
    display: flex;
    gap: 8px;
    margin: 20px 0;
    overflow-x: auto;
}

.nav-tab {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.nav-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.nav-tab.active {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #fff;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
}

.nav-tab i {
    width: 18px;
    height: 18px;
}

/* Main Layout */
.app-main {
    flex-grow: 1;
}

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

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

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

/* Glass Card */
.card-glass {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(12px) saturate(160%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-glass:hover {
    border-color: var(--border-hover);
}

.card-glass.border-trust {
    border-color: rgba(16, 185, 129, 0.15);
}
.card-glass.border-trust:hover {
    border-color: rgba(16, 185, 129, 0.3);
}

/* Grid Layouts */
.pane-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
}
.pane-grid-2.auth-active {
    grid-template-columns: 1fr;
}

.pane-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 24px;
}

@media (max-width: 1024px) {
    .pane-grid-2, .pane-grid-3 {
        grid-template-columns: 1fr;
    }
}

.pane-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 500px;
}

.flex-col { display: flex; flex-direction: column; }
.flex-fill { flex-grow: 1; overflow-y: auto; }

/* Card Header */
.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
}

.card-header i {
    width: 22px;
    height: 22px;
}

.section-intro {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.card-separator {
    height: 1px;
    background: var(--border-color);
    margin: 10px 0;
}

/* Helper Colors */
.accent-blue { color: var(--accent-blue); }
.accent-green { color: var(--accent-green); }
.accent-indigo { color: var(--accent-indigo); }
.accent-purple { color: var(--accent-purple); }

/* Forms */
.form-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 8px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    transition: all 0.25s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-indigo);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px var(--accent-indigo-glow);
}

select option {
    background-color: #ffffff !important;
    color: #111827 !important;
}

.help-text {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* Sliders */
.range-slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.range-slider-container input[type="range"] {
    flex-grow: 1;
    accent-color: var(--accent-indigo);
}

.range-val {
    min-width: 24px;
    font-weight: 700;
    color: #fff;
    text-align: right;
    font-size: 0.9rem;
}

/* Checkboxes */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 8px;
}

.checkbox-lbl {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-lbl input {
    accent-color: var(--accent-indigo);
}

/* Buttons */
.submit-btn {
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-blue {
    background: linear-gradient(135deg, var(--accent-blue), #1e40af);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-blue-glow);
}
.btn-blue:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--accent-blue-glow);
}

.btn-green {
    background: linear-gradient(135deg, var(--accent-green), #065f46);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-green-glow);
}
.btn-green:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--accent-green-glow);
}

.btn-red {
    background: linear-gradient(135deg, var(--accent-red), #991b1b);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-red-glow);
}
.btn-red:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--accent-red-glow);
}

.btn-indigo {
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple));
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-indigo-glow);
}
.btn-indigo:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--accent-indigo-glow);
}
.btn-indigo:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.action-btn-xs {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: background 0.2s;
}
.action-btn-xs:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Deal list cards */
.deal-vcard-list, .demand-board-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vcard-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.vcard-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(4px);
}

.vcard-item.active {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.4);
}

.vcard-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.vcard-top h3 {
    font-size: 0.95rem;
    font-weight: 600;
}

.badge-shartify {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-green);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.vcard-item.locked .badge-shartify {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--accent-amber);
}

.vcard-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 12px;
}

.vcard-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.vcard-budget {
    font-weight: 600;
    color: #fff;
}

.vcard-status {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
}

.vcard-status.open { color: var(--accent-blue); }
.vcard-status.paused { color: var(--accent-amber); }
.vcard-status.closed { color: var(--text-dim); }

.vcard-lock-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    color: var(--accent-amber);
}

/* Token Box */
.token-output-box {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.token-output-box label {
    font-size: 0.8rem;
    font-weight: 600;
}

.token-output-box textarea {
    background: #090d16;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    color: #38bdf8;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    resize: none;
    outline: none;
}

.copy-token-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: background 0.2s;
}
.copy-token-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Loading/Empty elements */
.loading-spinner {
    text-align: center;
    padding: 30px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-dim);
}

.empty-state i {
    width: 40px;
    height: 40px;
    color: var(--text-dim);
}

.empty-state p {
    font-size: 0.85rem;
    max-width: 240px;
}

/* Requests list in Buyer Workspace */
.req-item {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: border 0.2s, background 0.2s;
}
.req-item:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.03);
}

.req-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.req-header h4 {
    font-size: 0.9rem;
    font-weight: 600;
}

.req-score-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-indigo);
    background: rgba(99, 102, 241, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.req-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Request Details Panel (Right col) */
.request-details-panel {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeIn 0.3s ease;
}

.req-details-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.req-details-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
}

.req-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.8rem;
}

.detail-lbl { color: var(--text-secondary); margin-bottom: 3px; }
.detail-val { font-weight: 600; color: #fff; }

.intake-qa {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qa-block {
    background: rgba(255, 255, 255, 0.01);
    border-left: 2px solid var(--accent-indigo);
    padding: 8px 12px;
    font-size: 0.8rem;
}

.qa-q { font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.qa-a { color: var(--text-secondary); }

.detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.detail-actions button {
    flex-grow: 1;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.btn-approve { background: var(--accent-green); color: #fff; }
.btn-approve:hover { background: #059669; }
.btn-deny { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3) !important; color: var(--accent-red); }
.btn-deny:hover { background: rgba(239, 68, 68, 0.25); }

/* Vendor Workspace Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}
.modal-close:hover { color: #fff; }

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pre-dr-gate-step {
    border-left: 3px solid var(--accent-amber);
    padding-left: 12px;
}

.nda-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 8px;
    font-size: 0.75rem;
    line-height: 1.5;
    max-height: 120px;
    overflow-y: auto;
    color: var(--text-secondary);
    font-family: monospace;
}

.hidden { display: none !important; }

/* AI Agent Console Styles */
.handshake-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.handshake-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}
.handshake-item:hover {
    background: rgba(255, 255, 255, 0.04);
}
.handshake-item.active {
    border-color: var(--accent-indigo);
    background: rgba(99, 102, 241, 0.05);
}

.h-top { display: flex; justify-content: space-between; font-weight: 600; color: #fff; margin-bottom: 4px;}
.h-bot { font-size: 0.75rem; color: var(--text-secondary); }

.agents-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.agent-select-card {
    display: flex;
    gap: 12px;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.agent-select-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.agent-select-card.active {
    background: rgba(139, 92, 246, 0.06);
    border-color: var(--accent-purple);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.1);
}

.agent-badge {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
}

.agent-select-card.active .agent-badge {
    background: var(--accent-purple);
}
.agent-select-card.active .agent-badge i {
    color: #fff;
}

.agent-badge i {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.agent-info h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.agent-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.agent-kpi {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
    padding: 1px 6px;
    border-radius: 4px;
}

/* Terminal Styles */
.agent-console-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.terminal-shell {
    background: #05070c;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    height: 380px;
    padding: 12px;
    box-shadow: inset 0 0 10px #000;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.t-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.t-dot.red { background-color: var(--accent-red); }
.t-dot.yellow { background-color: var(--accent-amber); }
.t-dot.green { background-color: var(--accent-green); }

.t-title {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-left: 6px;
}

.terminal-screen {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #a7f3d0; /* emerald light */
    overflow-y: auto;
}

.t-line { margin-bottom: 4px; word-break: break-all; white-space: pre-wrap; }
.text-dim { color: var(--text-dim); }
.text-indigo { color: #818cf8; }
.text-amber { color: var(--accent-amber); }
.text-green { color: var(--accent-green); }
.text-white { color: #fff; font-weight: 600; }

.terminal-progress {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 8px;
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.t-progress-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}

.t-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, var(--accent-indigo), var(--accent-purple));
    animation: executeAgent 1.5s forwards ease-in-out;
}

@keyframes executeAgent {
    from { width: 0%; }
    to { width: 100%; }
}

.run-agent-btn {
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Economics Hub */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.kpi-card {
    display: flex;
    gap: 16px;
    align-items: center;
}

.kpi-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kpi-icon i { width: 24px; height: 24px; color: #fff; }

.bg-blue { background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.3); color: var(--accent-blue); }
.bg-green { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); color: var(--accent-green); }
.bg-indigo { background: rgba(99, 102, 241, 0.15); border: 1px solid rgba(99, 102, 241, 0.3); color: var(--accent-indigo); }
.bg-purple { background: rgba(139, 92, 246, 0.15); border: 1px solid rgba(139, 92, 246, 0.3); color: var(--accent-purple); }

.kpi-content {
    display: flex;
    flex-direction: column;
}

.kpi-content span { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 2px; }
.kpi-content h3 { font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 700; color: #fff; }
.kpi-content small { font-size: 0.7rem; color: var(--text-dim); margin-top: 2px; }

.margin-top-lg { margin-top: 24px; }

.chart-container {
    position: relative;
    height: 320px;
    width: 100%;
}

.audit-log-container {
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 12px;
    height: 320px;
    overflow-y: auto;
}

.audit-line {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    line-height: 1.4;
}
.audit-line:last-child { border: none; }

.audit-time { color: var(--accent-blue); }
.audit-tag { color: var(--accent-indigo); font-weight: 600; }
.audit-msg { color: var(--text-primary); }
.audit-hash { color: var(--text-dim); font-size: 0.65rem; word-break: break-all; margin-top: 2px; display: block; }

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(13, 20, 38, 0.9);
    border: 1px solid var(--accent-indigo);
    border-radius: 8px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.app-footer {
    margin-top: 40px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* Stripe Simulation Modal specific styles */
.stripe-modal {
    max-width: 450px;
    padding: 32px;
    position: relative;
    border-radius: 20px;
    background: rgba(13, 20, 38, 0.95) !important;
    backdrop-filter: blur(25px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.stripe-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
}
.stripe-branding {
    display: flex;
    align-items: center;
    gap: 10px;
}
.stripe-logo {
    color: #6366f1;
}
.stripe-badge {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-indigo);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-close-stripe {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
}
.btn-close-stripe:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}
.stripe-product-info {
    text-align: center;
    margin-bottom: 24px;
}
.stripe-product-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.stripe-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin: 6px 0 2px;
    background: linear-gradient(135deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stripe-recurring-desc {
    font-size: 0.75rem;
    color: var(--text-dim);
}
.stripe-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.stripe-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.stripe-input:focus {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.stripe-card-field-group {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
}
.stripe-card-field-group .stripe-input {
    border: none;
    border-radius: 0;
    background: transparent;
}
.stripe-card-field-group .card-num {
    border-bottom: 1px solid var(--border-color);
}
.stripe-card-subfields {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.stripe-card-subfields .card-exp {
    border-right: 1px solid var(--border-color);
}
.stripe-help {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--text-dim);
}
.stripe-error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: var(--accent-red);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.stripe-submit-btn {
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple));
    border: none;
    border-radius: 8px;
    color: #fff;
    padding: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: opacity 0.2s, transform 0.1s;
}
.stripe-submit-btn:hover {
    opacity: 0.95;
}
.stripe-submit-btn:active {
    transform: scale(0.98);
}
.stripe-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: stripeSpin 0.8s linear infinite;
}
@keyframes stripeSpin {
    to { transform: rotate(360deg); }
}
.stripe-modal-footer {
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-dim);
}

/* AI Agent Orchestration Config Styling */
.agent-config-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    backdrop-filter: blur(10px);
}
.agent-config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.agent-config-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 6px;
}
.agent-config-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.agent-config-badge.simulation {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-indigo);
    border: 1px solid rgba(99, 102, 241, 0.3);
}
.agent-config-badge.real {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}
.agent-config-row {
    display: flex;
    gap: 8px;
}
.agent-config-select {
    flex: 1;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-white);
    padding: 6px 10px;
    font-size: 0.75rem;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}
.agent-config-select:focus {
    border-color: var(--accent-indigo);
}
.agent-config-input {
    flex: 2;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-white);
    padding: 6px 10px;
    font-size: 0.75rem;
    outline: none;
    transition: border-color 0.2s;
}
.agent-config-input:focus {
    border-color: var(--accent-indigo);
}

/* Admin Portal Layout styles */
.admin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 4px;
}

/* Scrollbar styles for admin lists */
.admin-list::-webkit-scrollbar {
    width: 6px;
}
.admin-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
    border-radius: 3px;
}
.admin-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}
.admin-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

.admin-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
}

.admin-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-hover);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.admin-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.admin-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.admin-item-actions {
    display: flex;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
    justify-content: flex-end;
}

.admin-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.admin-input-row {
    display: flex;
    gap: 6px;
    width: 100%;
}

.admin-input {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: #fff;
    padding: 6px 10px;
    font-size: 0.8rem;
    flex-grow: 1;
    outline: none;
    transition: border-color 0.2s;
}

.admin-input:focus {
    border-color: var(--accent-indigo);
}
