/* ============================================
   GEO AgentReady - Glassmorphic 2026 Dashboard
   ============================================ */

:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #0f0f2e;
    --bg-tertiary: #141432;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-indigo: #6366f1;
    --accent-indigo-light: #818cf8;
    --accent-cyan: #22d3ee;
    --accent-cyan-light: #67e8f9;
    --accent-green: #10b981;
    --accent-yellow: #f59e0b;
    --accent-red: #ef4444;
    --accent-purple: #a855f7;
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --sidebar-width: 260px;
    --sidebar-collapsed: 72px;
    --topbar-height: 72px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Brand Logo Text */
.brand-text {
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.brand-geo {
    color: rgba(255, 255, 255, 0.85);
}

.brand-agent {
    color: #fff;
}

.brand-ready {
    background: linear-gradient(135deg, #22d3ee, #818cf8, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.glass-panel-sm {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

/* ============================================
   LOGIN SCREEN
   ============================================ */

.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.login-bg-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-indigo);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-cyan);
    bottom: -50px;
    right: -50px;
    animation-delay: -7s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--accent-purple);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 48px 40px;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out;
}

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

.login-logo {
    margin-bottom: 36px;
}

.logo-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
}

.logo-icon .logo-lucide {
    width: 32px;
    height: 32px;
    color: white;
}

.login-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.login-title .brand-geo {
    color: rgba(255, 255, 255, 0.85);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.85);
}

.login-title .brand-agent {
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.login-title .brand-ready {
    background: linear-gradient(135deg, #22d3ee, #818cf8, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    text-align: left;
}

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

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.input-wrapper input:focus {
    border-color: var(--accent-indigo);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn i {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-indigo), #4f46e5);
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 12px;
}

.btn-ghost:hover {
    background: var(--glass-bg);
    color: var(--text-primary);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--accent-red);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
}

.btn-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-green);
}

.btn-success:hover {
    background: rgba(16, 185, 129, 0.25);
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8125rem;
}

.login-fingerprint {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.login-fingerprint i {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

/* ============================================
   SIDEBAR
   ============================================ */

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    z-index: 100;
    border-radius: 0;
    border-left: none;
    border-top: none;
    border-bottom: none;
    transition: var(--transition);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar.collapsed .sidebar-brand,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .status-text,
.sidebar.collapsed .btn-logout span {
    display: none;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 20px 12px;
}

.sidebar.collapsed .sidebar-logo {
    justify-content: center;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 12px;
}

.sidebar.collapsed .sidebar-footer {
    align-items: center;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--glass-border);
}

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

.sidebar-logo-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo-icon i {
    width: 20px;
    height: 20px;
    color: white;
}

.sidebar-brand {
    font-size: 0.9375rem;
    font-weight: 700;
    white-space: nowrap;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.sidebar-toggle:hover {
    color: var(--text-primary);
    background: var(--glass-bg);
}

.sidebar-toggle i {
    width: 18px;
    height: 18px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-item i {
    width: 20px;
    height: 20px;
    min-width: 20px;
}

.nav-item:hover {
    color: var(--text-primary);
    background: var(--glass-bg-hover);
}

.nav-item.active {
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(34, 211, 238, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: linear-gradient(to bottom, var(--accent-indigo), var(--accent-cyan));
    border-radius: 0 2px 2px 0;
}

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
}

.status-dot.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent-green); }
    50% { opacity: 0.5; box-shadow: 0 0 16px var(--accent-green); }
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.btn-logout i {
    width: 20px;
    height: 20px;
    min-width: 20px;
}

.btn-logout:hover {
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.08);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: var(--transition);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed);
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    height: var(--topbar-height);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(10, 10, 26, 0.6);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
}

.mobile-menu-btn i {
    width: 24px;
    height: 24px;
}

.welcome-text h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

.welcome-text p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.date-range-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
}

.date-range-picker i {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.date-range-picker select {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8125rem;
    cursor: pointer;
    outline: none;
}

.date-range-picker select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.user-avatar i {
    width: 18px;
    height: 18px;
    color: white;
}

.page-container {
    flex: 1;
    padding: 32px;
    animation: fadeIn 0.3s ease-out;
}

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

/* ============================================
   DASHBOARD PAGE
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-indigo), var(--accent-cyan));
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.stat-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card-icon i {
    width: 20px;
    height: 20px;
}

.stat-card-icon.indigo {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-indigo-light);
}

.stat-card-icon.cyan {
    background: rgba(34, 211, 238, 0.15);
    color: var(--accent-cyan);
}

.stat-card-icon.green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.stat-card-icon.purple {
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent-purple);
}

.stat-card-change {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

.stat-card-change.positive {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.stat-card-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1.2;
}

.stat-card-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.dashboard-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.chart-panel {
    padding: 24px;
}

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

.chart-panel-title {
    font-size: 1rem;
    font-weight: 600;
}

.chart-panel-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.chart-container {
    position: relative;
    height: 280px;
}

.chart-container-sm {
    position: relative;
    height: 200px;
}

/* Trust Meter */
.trust-meter-section {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.trust-meter-card {
    padding: 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.trust-meter-chart {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
}

.trust-meter-score {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.trust-meter-score .score-value {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.trust-meter-score .score-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.trust-meter-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.trust-meter-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Active Triggers */
.triggers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 8px;
}

.trigger-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.trigger-item:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
}

.trigger-status {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.trigger-status i {
    width: 14px;
    height: 14px;
}

.trigger-status.green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.trigger-status.yellow {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-yellow);
}

.trigger-status.red {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

.trigger-content {
    flex: 1;
    min-width: 0;
}

.trigger-prompt {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trigger-detail {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================
   DATA TABLE
   ============================================ */

.data-table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--glass-border);
    white-space: nowrap;
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.data-table .td-primary {
    color: var(--text-primary);
    font-weight: 500;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-green {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-yellow {
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-yellow);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-red {
    background: rgba(239, 68, 68, 0.12);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-indigo {
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent-indigo-light);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.badge-cyan {
    background: rgba(34, 211, 238, 0.12);
    color: var(--accent-cyan);
    border: 1px solid rgba(34, 211, 238, 0.2);
}

/* ============================================
   CLIENTS PAGE
   ============================================ */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-header-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.page-header-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

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

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

.client-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.client-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.client-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.client-card-name {
    font-size: 1rem;
    font-weight: 600;
}

.client-card-website {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.client-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}

.client-card-industry {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.client-card-score {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   MODALS
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.2s ease-out;
}

.modal {
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    animation: fadeInUp 0.3s ease-out;
}

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

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--glass-bg);
}

.modal-close i {
    width: 20px;
    height: 20px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.modal-form .form-group input,
.modal-form .form-group select,
.modal-form .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.modal-form .form-group input:focus,
.modal-form .form-group select:focus,
.modal-form .form-group textarea:focus {
    border-color: var(--accent-indigo);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.modal-form .form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
}

/* ============================================
   PROMPTS PAGE
   ============================================ */

.prompts-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}

.prompts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prompt-card {
    padding: 20px;
    transition: var(--transition);
}

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

.prompt-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.prompt-card-text {
    font-size: 0.9375rem;
    font-weight: 500;
    flex: 1;
    margin-right: 16px;
    line-height: 1.5;
}

.prompt-card-actions {
    display: flex;
    gap: 8px;
}

.prompt-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

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

.prompt-meta-item i {
    width: 14px;
    height: 14px;
}

.template-sidebar {
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: calc(var(--topbar-height) + 32px);
}

.template-sidebar-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.template-sidebar-title i {
    width: 18px;
    height: 18px;
    color: var(--accent-cyan);
}

.template-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.template-item {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.template-item:hover {
    background: var(--glass-bg-hover);
    border-color: var(--accent-indigo);
}

.template-item-name {
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.template-item-preview {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   SCANS PAGE
   ============================================ */

.scans-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 8px 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8125rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.filter-select:focus {
    border-color: var(--accent-indigo);
}

.filter-select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.scan-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.scan-result-card {
    padding: 24px;
    transition: var(--transition);
}

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

.scan-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.scan-result-prompt {
    font-size: 1rem;
    font-weight: 600;
}

.scan-result-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.scan-engines {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.engine-result {
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
}

.engine-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.engine-name {
    font-size: 0.8125rem;
    font-weight: 600;
}

.engine-mentioned {
    font-size: 0.75rem;
}

.sentiment-bar {
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.05);
    margin: 10px 0;
    overflow: hidden;
}

.sentiment-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
}

.engine-citations {
    margin-top: 10px;
}

.engine-citations a {
    display: block;
    font-size: 0.75rem;
    color: var(--accent-cyan);
    text-decoration: none;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.engine-citations a:hover {
    text-decoration: underline;
}

.raw-response-toggle {
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.raw-response-toggle i {
    width: 12px;
    height: 12px;
}

.raw-response-content {
    margin-top: 8px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    white-space: pre-wrap;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.raw-response-content.show {
    display: block;
}

/* ============================================
   FIX-IT PAGE
   ============================================ */

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

.fixit-card {
    padding: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.fixit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.fixit-card.priority-high::before {
    background: linear-gradient(90deg, var(--accent-red), var(--accent-yellow));
}

.fixit-card.priority-medium::before {
    background: linear-gradient(90deg, var(--accent-yellow), var(--accent-green));
}

.fixit-card.priority-low::before {
    background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan));
}

.fixit-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.fixit-card-icon i {
    width: 24px;
    height: 24px;
}

.fixit-card-icon.icon-blue {
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent-indigo-light);
}

.fixit-card-icon.icon-cyan {
    background: rgba(34, 211, 238, 0.12);
    color: var(--accent-cyan);
}

.fixit-card-icon.icon-green {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-green);
}

.fixit-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.fixit-card-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.fixit-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.fixit-code-block {
    margin-top: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-sm);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-cyan-light);
    overflow-x: auto;
    white-space: pre;
    border: 1px solid rgba(34, 211, 238, 0.1);
}

/* ============================================
   REPORTS PAGE
   ============================================ */

.reports-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.report-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    transition: var(--transition);
    flex-wrap: wrap;
    gap: 12px;
}

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

.report-item-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.report-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(99, 102, 241, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-indigo-light);
}

.report-icon i {
    width: 22px;
    height: 22px;
}

.report-name {
    font-size: 0.9375rem;
    font-weight: 500;
}

.report-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.report-item-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ============================================
   SETTINGS PAGE
   ============================================ */

.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.settings-section {
    padding: 28px;
}

.settings-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.settings-section-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.settings-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.settings-form .form-group input,
.settings-form .form-group select {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.settings-form .form-group input:focus,
.settings-form .form-group select:focus {
    border-color: var(--accent-indigo);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.settings-form .form-group select option {
    background: var(--bg-primary);
}

.settings-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
}

.color-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid var(--glass-border);
}

/* ============================================
   EMPTY STATES
   ============================================ */

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-indigo-light);
}

.empty-state-icon i {
    width: 28px;
    height: 28px;
}

.empty-state-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(15, 15, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease-out;
    min-width: 300px;
    max-width: 440px;
}

.toast.toast-success {
    border-left: 3px solid var(--accent-green);
}

.toast.toast-error {
    border-left: 3px solid var(--accent-red);
}

.toast.toast-info {
    border-left: 3px solid var(--accent-indigo);
}

.toast.toast-warning {
    border-left: 3px solid var(--accent-yellow);
}

.toast-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
}

.toast-success .toast-icon { color: var(--accent-green); }
.toast-error .toast-icon { color: var(--accent-red); }
.toast-info .toast-icon { color: var(--accent-indigo); }
.toast-warning .toast-icon { color: var(--accent-yellow); }

.toast-message {
    font-size: 0.8125rem;
    color: var(--text-primary);
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.toast-close i {
    width: 14px;
    height: 14px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   LOADING OVERLAY
   ============================================ */

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.loading-spinner {
    text-align: center;
}

.spinner-ring {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-indigo);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid-3 {
        grid-template-columns: 1fr;
    }

    .trust-meter-section {
        grid-template-columns: 1fr;
    }

    .prompts-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -100%;
        width: 280px;
        z-index: 200;
    }

    .sidebar.mobile-open {
        left: 0;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .top-bar {
        padding: 12px 16px;
    }

    .page-container {
        padding: 20px 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .scans-filters {
        flex-direction: column;
    }

    .fixit-grid {
        grid-template-columns: 1fr;
    }

    .clients-grid {
        grid-template-columns: 1fr;
    }

    .scan-engines {
        grid-template-columns: 1fr;
    }

    .bot-cards-grid {
        grid-template-columns: 1fr;
    }

    .intelligence-form-row {
        flex-direction: column;
    }

    .intelligence-form-row .form-group {
        width: 100%;
    }
}

/* Mobile overlay for sidebar */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
    display: none;
}

.sidebar-overlay.show {
    display: block;
}

/* ============================================
   MISC / UTILITIES
   ============================================ */

.section-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 32px 0;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }

.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 24px; }

/* Search Input */
.search-input-wrapper {
    position: relative;
    max-width: 320px;
}

.search-input-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input-wrapper input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.8125rem;
    outline: none;
    transition: var(--transition);
}

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

.search-input-wrapper input::placeholder {
    color: var(--text-muted);
}

/* Tag-style pill */
.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 500;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-indigo-light);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

/* ============================================
   HALLUCINATION GUARD
   ============================================ */

/* Severity Badges */
.badge-critical {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    font-weight: 700;
}

.badge-major {
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.badge-minor {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Pulse animation for unresolved alerts */
.badge-pulse {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { opacity: 0.85; box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

/* Brand Facts Accordion */
.brand-facts-accordion {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fact-accordion-group {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.fact-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition);
}

.fact-accordion-header:hover {
    background: var(--glass-bg-hover);
}

.fact-accordion-arrow {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.fact-accordion-title {
    font-size: 0.875rem;
    font-weight: 600;
}

.fact-accordion-body {
    border-top: 1px solid var(--glass-border);
}

.fact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.fact-item:last-child {
    border-bottom: none;
}

.fact-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.fact-item-content {
    flex: 1;
    min-width: 0;
}

.fact-item-text {
    font-size: 0.8125rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.fact-item-date {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.fact-item-actions {
    display: flex;
    gap: 4px;
    margin-left: 12px;
}

.fact-item-actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    color: var(--text-muted);
    transition: var(--transition);
}

.fact-item-actions button:hover {
    background: var(--glass-bg-hover);
    color: var(--text-primary);
}

/* ============================================
   AI CRAWLER ANALYTICS
   ============================================ */

/* Live Feed Ticker */
.live-ticker {
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.live-ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition);
}

.live-ticker-item:hover {
    background: var(--glass-bg-hover);
}

.live-ticker-new {
    animation: tickerSlideIn 0.3s ease-out;
}

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

.live-ticker-time {
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 60px;
}

.live-ticker-bot {
    font-weight: 600;
    white-space: nowrap;
}

.live-ticker-action {
    color: var(--text-secondary);
}

.live-ticker-page {
    color: var(--accent-cyan);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.live-ticker-size {
    color: var(--text-muted);
    white-space: nowrap;
}

/* Bot Leaderboard */
.bot-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.leaderboard-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.leaderboard-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.leaderboard-bot-name {
    font-size: 0.8125rem;
    font-weight: 600;
}

.leaderboard-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    overflow: hidden;
}

.leaderboard-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Bot Management Cards */
.bot-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.bot-card {
    padding: 20px;
    transition: var(--transition);
}

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

.bot-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.bot-card-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bot-card-icon i {
    width: 18px;
    height: 18px;
}

.bot-card-name {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.bot-card-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.bot-card-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bot-card-stat-value {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.bot-card-stat-label {
    font-size: 0.625rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.bot-card-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    padding-top: 12px;
    border-top: 1px solid var(--glass-border);
}

/* Toggle Switch */
.bot-toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.bot-toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.bot-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(239, 68, 68, 0.3);
    border-radius: 11px;
    transition: var(--transition);
}

.bot-toggle-slider::before {
    content: '';
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
}

.bot-toggle-input:checked + .bot-toggle-slider {
    background: rgba(16, 185, 129, 0.5);
}

.bot-toggle-input:checked + .bot-toggle-slider::before {
    transform: translateX(18px);
}

/* Unauthorized row highlight */
.unauthorized-row td {
    background: rgba(239, 68, 68, 0.04) !important;
}

/* SDK Code Blocks */
.sdk-code-block {
    margin-top: 8px;
}

.sdk-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================
   INTELLIGENCE REPORTS
   ============================================ */

/* Intelligence Generate Form */
.intelligence-generate-form {
    margin-top: 16px;
}

.intelligence-form-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.intelligence-form-row .form-group {
    min-width: 160px;
}

.intelligence-form-row .form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* Intelligence Progress Bar */
.intel-progress-container {
    margin-top: 20px;
    padding: 16px;
    background: rgba(99, 102, 241, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-sm);
}

.intel-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.intel-progress-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent-indigo), var(--accent-cyan));
    transition: width 0.4s ease;
    width: 0%;
}

.intel-progress-text {
    font-size: 0.75rem;
    color: var(--accent-indigo-light);
    font-weight: 500;
}

/* Schedule List */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.schedule-item:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
}

.schedule-item-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.schedule-item-client {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    display: block;
}

.schedule-item-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

.schedule-item-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Progress bar */
.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent-indigo), var(--accent-cyan));
    transition: width 0.5s ease;
}

/* Frequency selector */
.frequency-pills {
    display: flex;
    gap: 8px;
}

.frequency-pill {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    transition: var(--transition);
}

.frequency-pill:hover,
.frequency-pill.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent-indigo);
    color: var(--accent-indigo-light);
}

/* File upload area */
.file-upload-area {
    border: 2px dashed var(--glass-border);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-area:hover {
    border-color: var(--accent-indigo);
    background: rgba(99, 102, 241, 0.03);
}

.file-upload-area i {
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.file-upload-area p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.file-upload-area span {
    color: var(--accent-indigo-light);
    font-weight: 500;
}

/* ===== Profile Page ===== */
.profile-layout {
    display: grid;
    gap: 24px;
}

.profile-card {
    padding: 32px;
}

.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-avatar-large i {
    color: #fff;
}

.profile-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.profile-email {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.profile-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-indigo-light);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.profile-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-sections {
    display: grid;
    gap: 24px;
}

.license-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.license-info-item {
    padding: 16px;
    background: rgba(10, 10, 15, 0.4);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.license-info-item .license-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.license-info-item .license-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.license-value.license-active {
    color: var(--accent-green);
}

/* ===== Auto-Updater Page ===== */
.updater-layout {
    display: grid;
    gap: 24px;
}

.updater-status-card {
    padding: 32px;
}

.updater-status-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.updater-version-info h3 {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.updater-version-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.updater-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.updater-status-badge.up-to-date {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.updater-icon-wrap {
    opacity: 0.3;
}

.updater-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
}

.updater-meta-item {
    text-align: center;
}

.updater-meta-item .label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.updater-meta-item .value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.updater-subscription-status {
    color: var(--accent-green) !important;
}

.updater-components {
    display: grid;
    gap: 12px;
}

.updater-component {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(10, 10, 15, 0.4);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.component-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.component-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.component-version {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.component-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.component-status.current {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.component-status.update-available {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-amber);
}

.updater-history {
    position: relative;
    padding-left: 24px;
}

.history-item {
    position: relative;
    padding-bottom: 24px;
    padding-left: 20px;
    border-left: 2px solid var(--glass-border);
}

.history-item:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.history-dot {
    position: absolute;
    left: -8px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-indigo);
    border: 3px solid var(--bg-card);
}

.history-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.history-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.history-details {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== External Links in Sidebar ===== */
.sidebar-external-links {
    padding: 8px 12px;
    margin-bottom: 8px;
    border-top: 1px solid var(--glass-border);
    padding-top: 12px;
}

.sidebar-external-links .nav-item {
    font-size: 0.8125rem;
    opacity: 0.8;
}

.sidebar-external-links .nav-item:hover {
    opacity: 1;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== Documentation Page ===== */
.docs-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    min-height: calc(100vh - 200px);
}

.docs-sidebar {
    padding: 24px;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.docs-nav-group {
    margin-bottom: 20px;
}

.docs-nav-group h4 {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-left: 12px;
}

.docs-link {
    display: block;
    padding: 8px 12px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    margin-bottom: 2px;
}

.docs-link:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.05);
}

.docs-link.active {
    color: var(--accent-indigo-light);
    background: rgba(99, 102, 241, 0.1);
    font-weight: 500;
}

.docs-content {
    padding: 40px;
    overflow-y: auto;
    max-height: calc(100vh - 120px);
}

.docs-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
}

.docs-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 12px;
}

.docs-content h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 8px;
}

.docs-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.docs-content ul,
.docs-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.docs-content li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 6px;
}

.docs-content strong {
    color: var(--text-primary);
}

.docs-content code {
    background: rgba(99, 102, 241, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8125rem;
    color: var(--accent-indigo-light);
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.docs-table td {
    padding: 10px 14px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--glass-border);
}

.docs-table tr td:first-child {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.docs-code {
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 16px 0;
    overflow-x: auto;
}

.docs-code pre {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    white-space: pre;
}

.docs-steps {
    margin: 16px 0;
}

.docs-step {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px;
    background: rgba(10, 10, 15, 0.3);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.docs-step .step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-indigo);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.docs-step strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.docs-step p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 900px) {
    .docs-layout {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        position: static;
        max-height: none;
    }

    .docs-content {
        max-height: none;
    }
}
