/* The Hive - Premium Agency Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Background System */
    --bg-deep: #050508;
    --bg-gradient: linear-gradient(135deg, #0f0f1e 0%, #1a0e2e 100%);
    --bg-card: rgba(18, 18, 26, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.05);

    /* Text Colors */
    --text-main: #ffffff;
    --text-dim: #94a3b8;
    --text-muted: #64748b;

    /* Accent Colors - More vibrant */
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-dark: #4f46e5;
    --accent-glow: rgba(99, 102, 241, 0.5);
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);

    /* Status Colors */
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.3);
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Border & Effects */
    --border-glass: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 32px var(--accent-glow);

    /* Layout */
    --radius-xl: 20px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;

    /* Animation */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-mode {
    --bg-deep: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-glass: rgba(0, 0, 0, 0.02);
    --text-main: #0f172a;
    --text-dim: #64748b;
    --border-glass: rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated background effect */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    animation: subtleMove 60s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes subtleMove {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(50px, 50px);
    }
}

.app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Glassmorphism Base */
.card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 1;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Header Redesign */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: var(--bg-card);
    /* Changed from hardcoded rgba */
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* ... existing code ... */

/* Creation Panel */
.creation-panel {
    margin-top: 32px;
    background: var(--bg-card);
    /* Changed from rgba(15, 23, 42, 0.6) */
    border-radius: var(--radius-md);
    border: 1px solid var(--accent);
    padding: 24px;
    animation: slideUp 0.3s ease-out;
    backdrop-filter: blur(10px);
}

/* ... existing code ... */

.form-input,
.form-select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-glass);
    /* Changed from rgba(0,0,0,0.3) */
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    color: var(--text-main);
    /* Ensure text color adapts */
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--accent);
    outline: none;
    background: var(--bg-card);
    /* Changed from rgba(0,0,0,0.5) */
}

/* ... existing code ... */

.modal-footer {
    padding: 20px;
    background: var(--bg-glass);
    /* Changed from rgba(0,0,0,0.5) */
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent), #a855f7);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 24px;
    box-shadow: 0 4px 20px var(--accent-glow);
    color: white;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-main);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.brand-status {
    font-size: 11px;
    color: var(--success);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-pill {
    padding: 8px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-number {
    font-weight: 700;
    font-size: 18px;
    color: var(--accent-light);
}

.stat-label {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Theme Toggle */
.theme-toggle {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--border-glass);
    transform: rotate(15deg);
}

/* Layout Grid */
.main {
    padding: 32px 40px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
}

.main-column {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Platform Engine */
.content-hub {
    padding: 32px;
}

.hub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.hub-header h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.mode-toggle {
    display: flex;
    gap: 4px;
    background: var(--bg-glass);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--border-glass);
}

.mode-btn {
    padding: 8px 20px;
    border: none;
    background: transparent;
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.mode-btn.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
}

.platform-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 24px 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.platform-card:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: var(--accent);
    transform: translateY(-4px);
}

.platform-card.selected {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.platform-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.platform-name {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
}

.platform-counter {
    font-size: 11px;
    color: var(--accent-light);
    font-weight: 600;
    opacity: 0.9;
}

/* Creation Panel */
.creation-panel {
    margin-top: 32px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: var(--radius-md);
    border: 1px solid var(--accent);
    padding: 24px;
    animation: slideUp 0.3s ease-out;
    backdrop-filter: blur(10px);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-glass);
}

.panel-close {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

/* Inbox & Approval */
.inbox {
    padding: 32px;
}

.inbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.inbox-actions {
    display: flex;
    gap: 12px;
}

.content-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 20px;
    transition: var(--transition);
}

.content-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

/* Sidebar Styling */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
}

/* AI Insights */
.analytics-content {
    padding: 24px;
}

.analytics-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trend-item,
.time-item,
.prediction-item {
    background: var(--bg-glass);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    transition: var(--transition);
}

.trend-item:hover {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.05);
}

.trend-name {
    font-weight: 700;
    margin-bottom: 4px;
    display: block;
}

.trend-reason {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.4;
}

/* Activity Feed */
.activity-feed {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-glass);
    font-size: 13px;
    display: flex;
    gap: 12px;
}

.activity-time {
    color: var(--accent-light);
    font-weight: 600;
    min-width: 45px;
}

/* Controls */
.control-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.btn-secondary:hover {
    background: rgba(139, 92, 246, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--bg-glass);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.full-width {
    width: 100%;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.form-input,
.form-select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--accent);
    outline: none;
    background: rgba(0, 0, 0, 0.5);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 15px var(--accent-glow));
}

.empty-text {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.empty-subtext {
    color: var(--text-dim);
    font-size: 14px;
}

/* Modal Design */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-deep);
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    border: 1px solid var(--accent);
    overflow: hidden;
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.3);
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}

/* === CONTENT STUDIO === */
.btn-studio-trigger {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
    transition: var(--transition);
}

.btn-studio-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.5);
}

.studio-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.studio-panel {
    width: 90%;
    max-width: 1100px;
    height: 80vh;
    background: var(--bg-deep);
    border: 1px solid var(--accent);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.2);
}

.studio-header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
}

.studio-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.studio-sidebar {
    width: 300px;
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid var(--border-glass);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.studio-tab {
    padding: 15px;
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-dim);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.studio-tab:hover {
    background: var(--bg-glass);
    color: var(--text-main);
}

.studio-tab.active {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent);
    color: white;
}

.studio-content {
    flex: 1;
    padding: 40px;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.05), transparent 40%);
    overflow-y: auto;
}

.studio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.asset-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-glass);
}

.asset-item img,
.asset-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.asset-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: 0.2s;
}

.asset-item:hover .asset-overlay {
    opacity: 1;
}

.control-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* === ANALYTICS INSIGHTS === */
.stat-box {
    background: var(--bg-glass);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    text-align: center;
}

.stat-box .value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
}

.stats-grid-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.comparison-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), transparent);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.comp-bar-container {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comp-bar {
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
}

.comp-bar.paid {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    width: 100%;
}

.comp-bar.organic {
    background: var(--success);
    color: #064e3b;
    width: 2px;
    /* Animated via JS */
}

.grade-viral {
    color: #f43f5e;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(244, 63, 94, 0.5);
}

.grade-excellent {
    color: var(--success);
    font-weight: 700;
}

.grade-normal {
    color: var(--text-dim);
}

.video-row {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid var(--border-glass);
}

/* Market Overview */
.market-overview {
    background: linear-gradient(135deg, var(--bg-card), rgba(99, 102, 241, 0.1));
    border: 1px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.outlook {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.outlook.bullish,
.outlook.success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.outlook.neutral,
.outlook.warning {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.outlook.bearish,
.outlook.danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.overview-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-light);
}

.stat-label {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
}

.prediction {
    font-style: italic;
    color: var(--text-dim);
    border-left: 3px solid var(--accent);
    padding-left: 12px;
}

/* Platform Reports */
.platform-reports {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.team-report {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 20px;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-glass);
}

.platform-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.platform-info h4 {
    margin: 0;
    text-transform: capitalize;
}

.opportunity-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.section-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--accent-light);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.analyst-section,
.manager-section {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 12px;
}

body.light-mode .analyst-section,
body.light-mode .manager-section {
    background: rgba(0, 0, 0, 0.05);
}

.analyst-section {
    border-left: 3px solid var(--success);
}

.manager-section {
    border-left: 3px solid var(--accent);
}

.post-plan {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
}

.post-plan li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
    background: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 8px;
}

.post-number {
    width: 24px;
    height: 24px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    color: white;
}

.post-details {
    flex: 1;
}

.post-details strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

.post-meta {
    font-size: 11px;
    color: var(--text-dim);
}

/* Risk Warnings */
.risk-warnings {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 16px;
}

.risk-warnings h4 {
    color: var(--danger);
    margin-bottom: 8px;
    font-size: 14px;
}

.risk-warnings ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-dim);
    font-size: 13px;
}

/* Modals */
.modal-header {
    background: var(--bg-card);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: 70vh;
}

.modal-footer {
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 24px;
    cursor: pointer;
}

/* Review Content Styling */
.hook-text {
    background: linear-gradient(135deg, var(--accent), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loading-state {
    text-align: center;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === SEO MISSION CONTROL === */
.seo-card {
    margin-top: 24px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(99, 102, 241, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.seo-agents {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.seo-agent-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(99, 102, 241, 0.2));
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.seo-agent-btn:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    transform: translateX(4px);
}

.agent-status {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.agent-status.running {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.autonomy-badge {
    font-size: 10px;
    padding: 4px 8px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 4px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

.seo-queue {
    max-height: 200px;
    overflow-y: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-glass);
}

.queue-empty {
    text-align: center;
    color: var(--text-dim);
    padding: 20px;
    font-size: 12px;
}

.seo-section {
    margin-bottom: 12px;
}

.seo-section strong {
    display: block;
    font-size: 11px;
    color: var(--accent-light);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.seo-item {
    font-size: 12px;
    padding: 6px 10px;
    background: var(--bg-card);
    border-radius: 4px;
    margin-bottom: 4px;
    border-left: 3px solid var(--accent);
}

.seo-item.alert-critical {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.seo-item.alert-warning {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}