/* ==========================================================================
   Hermes Agent Agency Dashboard - Premium Styling System
   ========================================================================== */

:root {
    /* Harmony Dark Color Palette */
    --bg-main: #060913;
    --bg-surface: rgba(13, 20, 38, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glowing: rgba(0, 242, 254, 0.25);
    
    /* Neon Glowing Accent Colors */
    --accent-cyan: #00f2fe;
    --accent-purple: #7f00ff;
    --accent-green: #39ff14;
    --accent-red: #ff3366;
    --accent-yellow: #ffd700;
    
    /* Text Color Scheme */
    --text-primary: #f1f3f9;
    --text-secondary: #a0aecd;
    --text-muted: #64748b;
    
    /* Typography & Animations */
    --font-header: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-neon: 0 0 15px rgba(0, 242, 254, 0.15);
}

/* Base Styles & Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(at 0% 0%, rgba(127, 0, 255, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 242, 254, 0.05) 0px, transparent 50%);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 50px;
}

h1, h2, h3, h4 {
    font-family: var(--font-header);
    font-weight: 600;
}

/* Glassmorphism Component */
.glass {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(13, 20, 38, 0.2);
}
::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.4);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Header Section */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    margin: 20px 40px;
    height: 70px;
}

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

.logo-pulse {
    width: 14px;
    height: 14px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-cyan);
    animation: pulseGlow 2s infinite;
}

.logo-area h1 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #fff 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-area h1 span {
    font-weight: 400;
    color: var(--text-secondary);
    background: none;
    -webkit-text-fill-color: var(--text-secondary);
}

.version-badge {
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-cyan);
    border: 1px solid var(--border-glowing);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.provider-status {
    display: flex;
    gap: 15px;
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    background: rgba(13, 20, 38, 0.8);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.status-pill.online {
    border-color: rgba(57, 255, 20, 0.3);
    color: var(--accent-green);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.1);
}

.status-pill.offline {
    border-color: rgba(255, 51, 102, 0.3);
    color: var(--accent-red);
}

/* Main Container Grid Layout */
.main-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Section Controls */
.section-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-title-bar h2 {
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

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

/* Active Agents Deck */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}

.agent-card {
    padding: 24px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    opacity: 0;
    transition: var(--transition-smooth);
}

.agent-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glowing);
    box-shadow: var(--shadow-neon);
}

.agent-card.active {
    border-color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.03);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.1);
}

.agent-card.active::before {
    opacity: 1;
}

.agent-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.agent-header h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 2px;
}

.agent-role {
    font-size: 13px;
    color: var(--accent-cyan);
    font-weight: 500;
}

.agent-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 11px;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.agent-body {
    margin-bottom: 15px;
}

.agent-body p {
    font-size: 13px;
    color: var(--text-secondary);
}

.agent-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.agent-meta span svg {
    width: 12px;
    height: 12px;
    vertical-align: middle;
    margin-right: 4px;
}

.agent-delete-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.agent-delete-btn:hover {
    color: var(--accent-red);
}

/* Workspace Panels (Inputs & Live Terminal) */
.section-workspace {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    min-height: 520px;
}

.workspace-inputs {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.workspace-inputs h3 {
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.workspace-inputs h3 svg {
    color: var(--accent-cyan);
}

.subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: -12px;
}

.chat-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-wrapper textarea {
    width: 100%;
    height: 120px;
    background: rgba(13, 20, 38, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: #fff;
    padding: 15px;
    font-family: var(--font-body);
    font-size: 14px;
    resize: none;
    outline: none;
    transition: var(--transition-smooth);
}

.input-wrapper textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
    background: rgba(13, 20, 38, 0.6);
}

.form-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.model-select-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.model-select-wrapper select {
    background: rgba(13, 20, 38, 0.8);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    font-family: var(--font-body);
}

.model-select-wrapper select:focus {
    border-color: var(--accent-cyan);
}

/* Agent SOUL Markdown Previewer */
.agent-soul-preview {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(13, 20, 38, 0.3);
    overflow: hidden;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.soul-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
}

.soul-header h4 {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.soul-header h4 svg {
    width: 14px;
    height: 14px;
    color: var(--accent-purple);
}

.soul-body {
    padding: 15px;
    overflow-y: auto;
    font-size: 12.5px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    max-height: 200px;
    white-space: pre-wrap;
}

/* Glowing Multi-Agent Live Terminal */
.workspace-terminal {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.terminal-header {
    background: rgba(13, 20, 38, 0.9);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.terminal-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dots .dot.red { background: var(--accent-red); }
.terminal-dots .dot.yellow { background: var(--accent-yellow); }
.terminal-dots .dot.green { background: var(--accent-green); }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
}

.terminal-screen {
    background: #03060f;
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 480px;
}

.terminal-line {
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.5;
}

.terminal-line .time {
    color: var(--text-muted);
    margin-right: 6px;
}

/* Color Coding for Streaming events */
.terminal-line.system { color: var(--text-secondary); }
.terminal-line.system .prefix { color: var(--accent-purple); font-weight: 500; }

.terminal-line.orchestrator { color: #fff; }
.terminal-line.orchestrator .prefix { color: var(--accent-cyan); font-weight: 600; }

.terminal-line.agent { color: #e2e8f0; }
.terminal-line.agent .prefix { color: var(--accent-purple); font-weight: 600; }

.terminal-line.agent-thought {
    color: #8a9fc4;
    font-style: italic;
    background: rgba(127, 0, 255, 0.05);
    padding: 10px;
    border-left: 3px solid var(--accent-purple);
    border-radius: 0 8px 8px 0;
    margin-left: 10px;
}

.terminal-line.tool { color: var(--accent-yellow); }
.terminal-line.tool .prefix { color: var(--accent-yellow); font-weight: 600; }

.terminal-line.learning_loop {
    color: var(--accent-green);
    background: rgba(57, 255, 20, 0.03);
    padding: 10px;
    border: 1px dashed rgba(57, 255, 20, 0.2);
    border-radius: 8px;
    margin: 5px 0;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.02);
}
.terminal-line.learning_loop .prefix { color: var(--accent-green); font-weight: 600; }

.terminal-line.error { color: var(--accent-red); }

.terminal-footer {
    background: rgba(13, 20, 38, 0.9);
    border-top: 1px solid var(--border-color);
    padding: 12px 20px;
    display: flex;
    align-items: center;
}

.pulse-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--text-secondary);
}

.pulse-circle {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulseGreen 1.5s infinite;
}

/* Button UI Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-secondary);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 8px;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-icon:hover {
    color: #fff;
}

/* Skills Deck (Store) */
.skills-count {
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: var(--accent-cyan);
    border: 1px solid var(--border-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}

.skill-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.skill-card:hover {
    border-color: rgba(57, 255, 20, 0.3);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.08);
    transform: translateY(-3px);
}

.skill-card h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 6px;
}

.skill-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.skill-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11.5px;
    color: var(--text-muted);
}

.skill-badge {
    background: rgba(57, 255, 20, 0.05);
    color: var(--accent-green);
    border: 1px solid rgba(57, 255, 20, 0.15);
    padding: 2px 8px;
    border-radius: 8px;
}

/* Interactive Modal Overlays */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 5, 10, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: var(--transition-smooth);
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal {
    width: 100%;
    max-width: 500px;
    padding: 30px;
    animation: modalShow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.modal-lg {
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(13, 20, 38, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #fff;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 13.5px;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-cyan);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Skill Content Preview Area inside Modal */
.skill-content-area {
    background: #03060f;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.skill-content-area pre {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-secondary);
    white-space: pre-wrap;
}

/* Animation Keyframes */
@keyframes pulseGlow {
    0% { transform: scale(1); box-shadow: 0 0 5px var(--accent-cyan); }
    50% { transform: scale(1.1); box-shadow: 0 0 15px var(--accent-cyan); }
    100% { transform: scale(1); box-shadow: 0 0 5px var(--accent-cyan); }
}

@keyframes pulseGreen {
    0% { opacity: 0.6; }
    50% { opacity: 1; box-shadow: 0 0 10px var(--accent-green); }
    100% { opacity: 0.6; }
}

@keyframes modalShow {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

/* Responsive Adaptive Layouts */
@media (max-width: 1200px) {
    .section-workspace {
        grid-template-columns: 1fr;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        height: auto;
        gap: 15px;
        padding: 20px;
        margin: 10px;
    }
    .main-container {
        padding: 0 15px;
    }
    .form-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Swarm Operations Hub (Kanban, RAG & Cron) Styles */
.section-swarm-ops {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
}

.swarm-kanban-board {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.panel-header h3 {
    font-size: 16px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-header h3 svg {
    color: var(--accent-cyan);
    width: 18px;
    height: 18px;
}

.kanban-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    height: 320px;
}

.kanban-column {
    background: rgba(13, 20, 38, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}

.column-title {
    font-size: 12px;
    text-transform: uppercase;
    font-family: var(--font-header);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.column-title.todo { color: var(--accent-yellow); }
.column-title.todo .dot { background: var(--accent-yellow); box-shadow: 0 0 5px var(--accent-yellow); }

.column-title.doing { color: var(--accent-cyan); }
.column-title.doing .dot { background: var(--accent-cyan); box-shadow: 0 0 5px var(--accent-cyan); }

.column-title.done { color: var(--accent-green); }
.column-title.done .dot { background: var(--accent-green); box-shadow: 0 0 5px var(--accent-green); }

.kanban-cards-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
    overflow-y: auto;
}

.empty-column-text {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin: auto;
    font-style: italic;
}

.kanban-card {
    padding: 12px;
    border-radius: 8px;
    font-size: 12.5px;
    cursor: default;
    border-color: rgba(255, 255, 255, 0.05);
    background: rgba(13, 20, 38, 0.6);
    transition: var(--transition-smooth);
}

.kanban-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-1px);
}

.kanban-card-title {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 6px;
    line-height: 1.4;
}

.kanban-card-meta {
    font-size: 10px;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 4px;
}

.swarm-modules-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.module-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.module-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-row-sm {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
}

.form-row-sm input, .module-form input, .module-form textarea, .module-form select {
    background: rgba(13, 20, 38, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #fff;
    padding: 8px 12px;
    font-family: var(--font-body);
    font-size: 12.5px;
    outline: none;
    transition: var(--transition-smooth);
}

.form-row-sm input:focus, .module-form input:focus, .module-form textarea:focus, .module-form select:focus {
    border-color: var(--accent-cyan);
}

.module-form textarea {
    height: 70px;
    resize: none;
}

.btn-xs {
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 6px;
}

.module-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 140px;
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 8px;
}

.empty-list-text {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 10px;
}

.module-item {
    background: rgba(13, 20, 38, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.module-item-info h4 {
    font-size: 13px;
    color: #fff;
    margin-bottom: 2px;
}

.module-item-info span {
    font-size: 11px;
    color: var(--text-secondary);
}

.module-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-badge {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 6px;
    font-weight: 500;
}

.status-badge.active {
    background: rgba(57, 255, 20, 0.08);
    color: var(--accent-green);
    border: 1px solid rgba(57, 255, 20, 0.15);
}

/* Hyperframes Visual Rendering Styles */
.section-hyperframes {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.section-hyperframes h2 {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-hyperframes h2 svg {
    color: var(--accent-purple);
}

.hyperframes-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    background: rgba(3, 6, 15, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
}

.hyperframes-preview-area {
    min-height: 220px;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #03060f;
    overflow: hidden;
}

.empty-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 12.5px;
    padding: 20px;
    text-align: center;
}

.hyperframes-controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding-left: 10px;
}

.metadata-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
    font-size: 13px;
}

.metadata-item .label {
    color: var(--text-secondary);
}

.metadata-item .value {
    color: var(--accent-cyan);
    font-family: var(--font-mono);
}

/* Hyperframes Simulated Banner Graphics */
.hyperframes-card-wrapper {
    width: 100%;
    max-width: 320px;
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 10px;
    background: #0d1426;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.08);
    animation: modalShow 0.4s ease;
}

.hyperframes-banner {
    background: linear-gradient(135deg, var(--accent-purple) 0%, #1a103c 100%);
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hyperframes-banner .tag {
    display: inline-block;
    font-size: 9px;
    background: var(--accent-cyan);
    color: #03060f;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
    margin-bottom: 8px;
}

.hyperframes-banner h2 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 2px;
}

.hyperframes-banner p {
    font-size: 10px;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hyperframes-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 8px;
}

.product-item .icon {
    font-size: 20px;
}

.product-item h4 {
    font-size: 12px;
    color: #fff;
    margin-bottom: 1px;
}

.product-item p {
    font-size: 10px;
    color: var(--accent-green);
}

.hyperframes-footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 8px;
    text-align: center;
    font-size: 9px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Hyperframes Standard Simulated Card */
.hyperframes-card-wrapper.standard {
    border-color: rgba(127, 0, 255, 0.2);
    box-shadow: 0 4px 20px rgba(127, 0, 255, 0.08);
}

.hyperframes-header-std {
    background: #110e20;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hyperframes-header-std h3 {
    font-size: 13px;
    color: #fff;
}

.hyperframes-header-std .badge {
    font-size: 9px;
    background: rgba(57, 255, 20, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(57, 255, 20, 0.2);
    padding: 1px 6px;
    border-radius: 4px;
}

.hyperframes-body-std {
    padding: 15px;
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.hyperframes-footer-std {
    background: rgba(0, 0, 0, 0.2);
    padding: 8px;
    text-align: center;
    font-size: 9px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* Adaptive styles for Swarm section */
@media (max-width: 1200px) {
    .section-swarm-ops {
        grid-template-columns: 1fr;
    }
    .kanban-columns {
        height: auto;
        grid-template-columns: 1fr;
    }
    .kanban-column {
        height: 200px;
    }
    .hyperframes-container {
        grid-template-columns: 1fr;
    }
}

/* Google Suite OAuth Premium Button & Glow */
.glowing-btn {
    border: 1px solid var(--accent-cyan) !important;
    background: rgba(0, 242, 254, 0.1) !important;
    color: var(--accent-cyan) !important;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
    animation: pulseCyan 2s infinite;
    cursor: pointer;
    font-weight: 600;
}
.glowing-btn:hover {
    background: var(--accent-cyan) !important;
    color: #03060f !important;
    box-shadow: 0 0 20px var(--accent-cyan);
}
@keyframes pulseCyan {
    0% { box-shadow: 0 0 5px rgba(0, 242, 254, 0.2); }
    50% { box-shadow: 0 0 15px rgba(0, 242, 254, 0.5); }
    100% { box-shadow: 0 0 5px rgba(0, 242, 254, 0.2); }
}

/* WhatsApp Premium Button & Status */
.whatsapp-btn {
    border: 1px solid #25d366 !important;
    background: rgba(37, 211, 102, 0.1) !important;
    color: #25d366 !important;
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.2);
    animation: pulseWhatsApp 2s infinite;
    cursor: pointer;
    font-weight: 600;
}
.whatsapp-btn:hover {
    background: #25d366 !important;
    color: #03060f !important;
    box-shadow: 0 0 20px #25d366;
}
.status-pill.online#whatsapp-status {
    border-color: rgba(37, 211, 102, 0.3);
    color: #25d366;
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.15);
}
@keyframes pulseWhatsApp {
    0% { box-shadow: 0 0 5px rgba(37, 211, 102, 0.2); }
    50% { box-shadow: 0 0 15px rgba(37, 211, 102, 0.5); }
    100% { box-shadow: 0 0 5px rgba(37, 211, 102, 0.2); }
}

/* Spinner Animation for Loader */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.animate-spin {
    animation: spin 1.5s linear infinite;
}

/* Update button specific styling and animation */
#btn-update-skills i {
    transition: transform 0.3s ease;
}
#btn-update-skills.updating i {
    animation: spin 1s linear infinite;
}
#btn-update-skills.updating {
    pointer-events: none;
    opacity: 0.7;
    animation: pulseCyan 0.5s infinite;
}



