/* Stats Dashboard - Dark Refined Theme */

:root {
    /* Core palette */
    --bg-dark: #0d1117;
    --bg-card: #161b22;
    --bg-elevated: #1c2128;
    --bg-hover: #21262d;
    --border: #30363d;
    --border-light: #21262d;

    /* Text */
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;

    /* Accent colors */
    --accent: #58a6ff;
    --accent-bright: #79c0ff;
    --accent-muted: rgba(88, 166, 255, 0.15);

    /* Status colors */
    --success: #3fb950;
    --success-muted: rgba(63, 185, 80, 0.15);
    --warning: #d29922;
    --warning-muted: rgba(210, 153, 34, 0.15);
    --danger: #f85149;
    --danger-muted: rgba(248, 81, 73, 0.15);

    /* Chart colors */
    --chart-1: #58a6ff;
    --chart-2: #3fb950;
    --chart-3: #d29922;
    --chart-4: #a371f7;

    /* Typography */
    --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, monospace;
    --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;

    /* Radius */
    --radius-sm: 4px;
    --radius: 6px;
    --radius-lg: 8px;

    /* Shadows */
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

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

.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    background-image:
        radial-gradient(ellipse at top, rgba(88, 166, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(63, 185, 80, 0.05) 0%, transparent 50%);
}

.login-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 360px;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.logo-icon {
    font-size: 28px;
    color: var(--accent);
}

.logo-text {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

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

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-muted);
}

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

.error {
    color: var(--danger);
    font-size: 13px;
    margin-top: 12px;
    text-align: center;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: var(--accent-bright);
}

.btn-secondary {
    background: var(--bg-elevated);
    border-color: var(--border);
    color: var(--text-primary);
}

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

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 12px;
}

.btn-icon {
    padding: 8px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius);
    transition: color 0.15s, background 0.15s;
}

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

.btn-copy {
    padding: 6px 12px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}

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

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

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 17, 23, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

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

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    animation: slideIn 0.3s ease;
}

.toast.error { background: var(--danger); color: white; }
.toast.success { background: var(--success); color: white; }
.toast.info { background: var(--accent); color: var(--bg-dark); }

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

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */

.dashboard {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   HEADER
   ============================================ */

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

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.logo .logo-icon {
    font-size: 20px;
    color: var(--accent);
}

.logo .logo-text {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.site-selector select,
.period-selector select {
    padding: 6px 28px 6px 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.site-selector select:focus,
.period-selector select:focus {
    outline: none;
    border-color: var(--accent);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--success-muted);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 12px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.15); }
}

.live-count {
    color: var(--success);
    font-weight: 600;
}

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

.live-indicator {
    position: relative;
    cursor: pointer;
}

.live-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    max-height: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 100;
    overflow: hidden;
}

.live-dropdown.active {
    display: block;
}

.live-dropdown-header {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}

.live-dropdown-list {
    max-height: 340px;
    overflow-y: auto;
}

.live-visitor-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-light);
}

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

.live-visitor-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.live-visitor-page {
    flex: 1;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-visitor-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.live-visitor-location {
    flex: 1;
}

.live-visitor-device {
    color: var(--text-muted);
}

.live-dropdown-empty {
    padding: 24px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.clock {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   STATS BAR
   ============================================ */

.stats-bar {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.stat-card {
    flex: 1;
    min-width: 120px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.stat-label {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-change {
    font-family: var(--font-mono);
    font-size: 11px;
    margin-top: 4px;
}

.stat-change.positive { color: var(--success); }
.stat-change.positive::before { content: '↑ '; }
.stat-change.negative { color: var(--danger); }
.stat-change.negative::before { content: '↓ '; }
.stat-change.neutral { color: var(--text-muted); }

.stat-sublabel {
    font-size: 10px;
    color: var(--text-muted);
}

.stat-card-live {
    background: var(--success-muted);
    border-color: rgba(63, 185, 80, 0.3);
}

.stat-card-live .stat-value {
    color: var(--success);
}

.stat-card-split .stat-value-split {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 600;
}

.stat-card-split .stat-new {
    color: var(--success);
}

.stat-card-split .stat-returning {
    color: var(--accent);
}

.stat-card-split .stat-separator {
    color: var(--text-muted);
    font-weight: 300;
}

.stat-card-split .stat-sublabel {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ============================================
   TAB NAVIGATION
   ============================================ */

.tab-nav {
    display: flex;
    gap: 4px;
    padding: 0 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    padding: 12px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

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

.main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   LIVE FEED SECTION
   ============================================ */

.live-feed-section {
    margin-bottom: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

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

.feed-status {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.live-feed {
    max-height: 220px;
    overflow-y: auto;
}

/* Visitor-centric rows */
.visitor-row {
    display: grid;
    grid-template-columns: 24px 140px 1fr auto auto 70px;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
    transition: background 0.15s ease;
}

.visitor-row:last-child {
    border-bottom: none;
}

.visitor-row:hover {
    background: var(--bg-hover);
}

.visitor-row.is-live {
    background: rgba(63, 185, 80, 0.03);
}

.visitor-row.is-live:hover {
    background: rgba(63, 185, 80, 0.06);
}

/* Status dot */
.visitor-status {
    display: flex;
    align-items: center;
    justify-content: center;
}

.visitor-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.visitor-dot.live {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
    animation: pulse 2s ease-in-out infinite;
}

.visitor-dot.idle {
    background: var(--text-muted);
    opacity: 0.4;
}

/* Location */
.visitor-location {
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Site/Domain */
.visitor-site {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Activity summary */
.visitor-activity {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    background: var(--accent-muted);
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Badges */
.visitor-badges {
    display: flex;
    gap: 4px;
}

.badge-bot, .badge-dc {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    text-transform: uppercase;
}

.badge-bot {
    color: var(--warning);
    background: var(--warning-muted);
}

.badge-dc {
    color: #a371f7;
    background: rgba(163, 113, 247, 0.15);
}

/* Time */
.visitor-time {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
}

.feed-empty {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* ============================================
   USER FLOW SECTION
   ============================================ */

.flow-section {
    margin-bottom: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.flow-section summary {
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
}

.flow-section summary::-webkit-details-marker {
    display: none;
}

.flow-section summary::before {
    content: '+';
    display: inline-block;
    width: 16px;
    margin-right: 8px;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.flow-section[open] summary::before {
    content: '-';
}

.flow-container {
    padding: 16px;
    border-top: 1px solid var(--border);
    max-height: 300px;
    overflow-y: auto;
}

.flow-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--border-light);
}

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

.flow-from, .flow-to {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.flow-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
}

.flow-count {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
}

/* ============================================
   CHART SECTION
   ============================================ */

.chart-section {
    margin-bottom: 20px;
}

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

.section-title {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.chart-toggles {
    display: flex;
    gap: 4px;
}

.chart-toggle {
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.chart-toggle:hover {
    color: var(--text-primary);
}

.chart-toggle.active {
    background: var(--accent-muted);
    border-color: var(--accent);
    color: var(--accent);
}

.compare-btn {
    background: transparent;
    border-color: var(--border);
    color: var(--text-muted);
}

.compare-btn:hover {
    border-color: var(--warning);
    color: var(--warning);
}

.compare-btn.active {
    background: var(--warning-muted);
    border-color: var(--warning);
    color: var(--warning);
}

.chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
}

.chart-container canvas {
    max-height: 240px;
}

/* Annotations */
.annotations-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 16px;
    border-top: 1px solid var(--border);
}

.annotation-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 11px;
    color: var(--text-secondary);
}

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

.annotation-date {
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.annotation-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
    line-height: 1;
    font-size: 14px;
}

.annotation-delete:hover {
    color: var(--danger);
}

.color-options {
    display: flex;
    gap: 8px;
}

.color-option {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active {
    border-color: var(--text-primary);
}

/* ============================================
   PANELS GRID
   ============================================ */

.panels-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

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

.panel-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.panel-tabs {
    display: flex;
    gap: 4px;
}

.panel-tab {
    padding: 4px 10px;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
}

.panel-tab:hover {
    color: var(--text-secondary);
}

.panel-tab.active {
    background: var(--accent-muted);
    color: var(--accent);
}

.panel-content {
    max-height: 280px;
    overflow-y: auto;
}

/* Panel Rows */
.panel-row {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    gap: 12px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.1s;
}

.panel-row:last-child {
    border-bottom: none;
}

.panel-row:hover {
    background: var(--bg-hover);
}

.panel-row-name {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-row-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.panel-row-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
    min-width: 2px;
}

/* Color classes from JS */
.panel-row-bar-fill.blue { background: #58a6ff; }
.panel-row-bar-fill.green { background: #3fb950; }
.panel-row-bar-fill.purple { background: #a371f7; }
.panel-row-bar-fill.orange { background: #f0883e; }
.panel-row-bar-fill.cyan { background: #39d4e0; }

/* Fallback panel-specific colors */
.panel-row-bar-fill.sources { background: #58a6ff; }
.panel-row-bar-fill.pages { background: #a371f7; }
.panel-row-bar-fill.geo { background: #f0883e; }
.panel-row-bar-fill.tech { background: #3fb950; }

.panel-row-value {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 50px;
    text-align: right;
}

.panel-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

/* ============================================
   SESSIONS TAB - Precision Data Terminal
   ============================================ */

/* Toolbar with filters */
#tab-sessions .sessions-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

#tab-sessions .filter-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

#tab-sessions .filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

#tab-sessions .filter-chip:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    background: var(--bg-elevated);
}

#tab-sessions .filter-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

#tab-sessions .filter-chip svg {
    width: 14px;
    height: 14px;
    opacity: 0.8;
}

#tab-sessions .filter-chip.active svg {
    opacity: 1;
}

#tab-sessions .filter-divider {
    width: 1px;
    height: 24px;
    background: var(--border);
    margin: 0 8px;
}

#tab-sessions .checkbox-chip {
    cursor: pointer;
}

#tab-sessions .checkbox-chip input {
    display: none;
}

#tab-sessions .checkbox-chip input:checked + span {
    color: var(--accent);
}

#tab-sessions .checkbox-chip:has(input:checked) {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

#tab-sessions .sessions-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 6px;
    min-width: 240px;
    transition: border-color 0.2s;
}

#tab-sessions .sessions-search svg {
    color: var(--text-muted);
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

#tab-sessions .sessions-search input {
    flex: 1;
    background: none;
    border: none;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-primary);
    outline: none;
    min-width: 150px;
}

#tab-sessions .sessions-search input::placeholder {
    color: var(--text-muted);
}

#tab-sessions .sessions-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

/* Sessions Table */
#tab-sessions .sessions-table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

#tab-sessions .sessions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
}

#tab-sessions .sessions-table thead {
    background: var(--bg-elevated);
}

#tab-sessions .sessions-table th {
    padding: 12px 16px;
    text-align: left;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    user-select: none;
}

#tab-sessions .sessions-table th.sortable {
    cursor: pointer;
    transition: color 0.15s;
}

#tab-sessions .sessions-table th.sortable:hover {
    color: var(--text-primary);
}

#tab-sessions .sessions-table th.sortable.active {
    color: var(--accent);
}

#tab-sessions .sessions-table th.sortable::after {
    content: '';
    margin-left: 4px;
}

#tab-sessions .sessions-table th.sortable.active::after {
    content: ' ↓';
}

#tab-sessions .sessions-table th.sortable.active.asc::after {
    content: ' ↑';
}

/* CRITICAL: Session row - only target .session-row, not .session-expanded */
#tab-sessions .sessions-table tbody tr.session-row {
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s ease;
    cursor: pointer;
}

#tab-sessions .sessions-table tbody tr.session-row:hover {
    background: var(--bg-hover);
}

#tab-sessions .sessions-table tbody tr.session-row.expanded {
    background: var(--bg-elevated);
    border-bottom-color: transparent;
}

#tab-sessions .sessions-table td {
    padding: 12px 16px;
    vertical-align: middle;
    color: var(--text-primary);
}

/* Column widths - using fixed table layout */
#tab-sessions .col-status { width: 50px; text-align: center; }
#tab-sessions .col-user { width: 80px; }
#tab-sessions .col-location { width: 160px; }
#tab-sessions .col-device { width: 110px; }
#tab-sessions .col-pages { width: 60px; text-align: center; }
#tab-sessions .col-duration { width: 80px; text-align: right; }
#tab-sessions .col-entry { width: auto; }
#tab-sessions .col-source { width: 100px; }
#tab-sessions .col-time { width: 90px; text-align: right; }

/* Cell content styles */
#tab-sessions .session-user {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.02em;
}

#tab-sessions .session-location-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
}

#tab-sessions .session-country {
    font-weight: 500;
    font-size: 13px;
    color: var(--text-primary);
}

#tab-sessions .session-city {
    font-size: 11px;
    color: var(--text-muted);
}

#tab-sessions .session-device-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

#tab-sessions .session-device-cell svg {
    flex-shrink: 0;
    opacity: 0.6;
    width: 16px;
    height: 16px;
}

#tab-sessions .session-device-cell span {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#tab-sessions .session-pages {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    display: block;
}

#tab-sessions .session-duration {
    font-family: var(--font-mono);
    font-size: 12px;
    text-align: right;
    color: var(--text-secondary);
    display: block;
}

#tab-sessions .session-duration.engaged {
    color: var(--success);
    font-weight: 600;
}

#tab-sessions .session-entry {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#tab-sessions .session-source {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: var(--success);
    background: var(--success-muted);
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

#tab-sessions .session-time-cell {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
    display: block;
}

/* Status badges in table */
#tab-sessions .status-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 20px;
}

#tab-sessions .status-live {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 6px var(--success);
}

#tab-sessions .status-bot,
#tab-sessions .status-dc {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

#tab-sessions .status-bot {
    color: var(--warning);
    background: var(--warning-muted);
    border: 1px solid rgba(210, 153, 34, 0.3);
}

#tab-sessions .status-dc {
    color: #a371f7;
    background: rgba(163, 113, 247, 0.15);
    border: 1px solid rgba(163, 113, 247, 0.3);
}

/* Expanded row (inline timeline) - CRITICAL: must be hidden by default */
#tab-sessions .sessions-table tr.session-expanded {
    display: none !important;
}

#tab-sessions .sessions-table tr.session-expanded.visible {
    display: table-row !important;
}

#tab-sessions .session-expanded td {
    padding: 0 !important;
    background: #0a0d10;
    border-bottom: 1px solid var(--border);
}

#tab-sessions .session-timeline {
    padding: 20px 24px;
    padding-left: 48px;
    border-left: 3px solid var(--accent);
    margin-left: 32px;
    max-height: 300px;
    overflow-y: auto;
}

#tab-sessions .timeline-event {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 10px 0;
    position: relative;
}

#tab-sessions .timeline-event::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 14px;
    width: 10px;
    height: 10px;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: 50%;
}

#tab-sessions .timeline-event.pageview::before {
    border-color: var(--accent);
}

#tab-sessions .timeline-event.click::before {
    border-color: var(--success);
    background: var(--success);
}

#tab-sessions .timeline-time {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    min-width: 60px;
    flex-shrink: 0;
}

#tab-sessions .timeline-content {
    flex: 1;
    min-width: 0;
}

#tab-sessions .timeline-type {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

#tab-sessions .timeline-type.pageview {
    color: var(--accent);
}

#tab-sessions .timeline-type.click {
    color: var(--success);
}

#tab-sessions .timeline-url {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
    word-break: break-all;
    line-height: 1.4;
}

#tab-sessions .timeline-meta {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Footer */
#tab-sessions .sessions-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

#tab-sessions .sessions-count {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

/* Keep old badge styles for compatibility */
.session-utm {
    font-size: 10px;
    color: var(--success);
    background: rgba(63, 185, 80, 0.15);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.bot-badge {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--warning);
    background: rgba(240, 136, 62, 0.15);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.dc-badge {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: #a371f7;
    background: rgba(163, 113, 247, 0.15);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.live-badge {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--success);
    background: var(--success-muted);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.session-path {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-light);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
    overflow-x: auto;
}

.session-path span {
    color: var(--text-muted);
}

/* ============================================
   FUNNELS TAB
   ============================================ */

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

.funnels-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.funnel-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: border-color 0.15s;
}

.funnel-card:hover {
    border-color: var(--text-muted);
}

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

.funnel-card-name {
    font-weight: 500;
    color: var(--text-primary);
}

.funnel-card-conversion {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--success);
}

.funnel-card-steps {
    font-size: 12px;
    color: var(--text-muted);
}

.funnel-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.funnel-results {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

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

.funnel-results-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.funnel-step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.funnel-step:last-child {
    border-bottom: none;
}

.funnel-step-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: 50%;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.funnel-step-info {
    flex: 1;
}

.funnel-step-value {
    font-size: 13px;
    color: var(--text-primary);
}

.funnel-step-type {
    font-size: 11px;
    color: var(--text-muted);
}

.funnel-step-bar {
    flex: 1;
    height: 24px;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    overflow: hidden;
}

.funnel-step-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: var(--radius);
    transition: width 0.3s ease;
}

.funnel-step-stats {
    text-align: right;
    min-width: 100px;
}

.funnel-step-count {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.funnel-step-percent {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   SOURCES TAB
   ============================================ */

.sources-section {
    margin-bottom: 24px;
}

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

.utm-tabs {
    display: flex;
    gap: 4px;
}

.utm-tab {
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.utm-tab:hover {
    color: var(--text-primary);
}

.utm-tab.active {
    background: var(--accent-muted);
    border-color: var(--accent);
    color: var(--accent);
}

.utm-content,
.referrers-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* ============================================
   SETUP TAB
   ============================================ */

.setup-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.setup-section:last-child {
    border-bottom: none;
}

.setup-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.setup-desc code {
    font-family: var(--font-mono);
    font-size: 12px;
    background: var(--bg-elevated);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    color: var(--accent);
}

.code-block {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    overflow-x: auto;
}

.code-block code {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--success);
    white-space: nowrap;
}

.export-buttons {
    display: flex;
    gap: 8px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.feature-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.feature-icon {
    color: var(--accent);
    font-size: 14px;
}

.feature-text strong {
    display: block;
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.feature-text span {
    font-size: 12px;
    color: var(--text-muted);
}

.events-section {
    margin-bottom: 24px;
}

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

.event-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.event-name {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
}

.event-count {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
}

.event-users {
    font-size: 12px;
    color: var(--text-muted);
    min-width: 70px;
    text-align: right;
}

/* ============================================
   COHORT TABLE
   ============================================ */

.cohorts-section {
    margin-top: 32px;
}

.cohort-table-container {
    overflow-x: auto;
}

.cohort-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.cohort-table th,
.cohort-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.cohort-table th {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: var(--bg-secondary);
}

.cohort-table tr:last-child td {
    border-bottom: none;
}

.retention-cell {
    font-family: var(--font-mono);
    text-align: center;
    border-radius: 4px;
    color: var(--text-primary);
}

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

.perf-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    font-size: 13px;
}

.perf-url {
    flex: 1;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.perf-metric {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 80px;
}

.perf-metric.slow {
    color: var(--warning);
}

.perf-samples {
    font-size: 11px;
    color: var(--text-muted);
    min-width: 60px;
    text-align: right;
}

.db-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.db-stat {
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.db-stat-value {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.db-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

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

.error-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--danger);
    border-radius: var(--radius);
    font-size: 13px;
}

.error-message {
    color: var(--danger);
    font-family: var(--font-mono);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.error-location {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 11px;
}

.error-meta {
    display: flex;
    gap: 16px;
    font-size: 11px;
    color: var(--text-muted);
}

.error-count {
    color: var(--warning);
    font-weight: 600;
}

.errors-empty {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

.errors-summary {
    padding: 12px;
    background: var(--danger-muted);
    border: 1px solid var(--danger);
    border-radius: var(--radius);
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-primary);
}

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

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

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

.modal-header h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

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

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

/* Funnel step builder */
.funnel-step-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

.funnel-step-row select,
.funnel-step-row input {
    padding: 8px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-primary);
}

.funnel-step-row select {
    width: 120px;
}

.funnel-step-row input {
    flex: 1;
}

.funnel-step-row .btn-remove {
    padding: 8px;
    background: var(--danger-muted);
    color: var(--danger);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
}

/* Session timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-elevated);
    border-radius: var(--radius);
}

.timeline-time {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    min-width: 70px;
}

.timeline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 4px;
}

.timeline-dot.pageview { background: var(--accent); }
.timeline-dot.click { background: var(--success); }
.timeline-dot.heartbeat { background: var(--text-muted); }

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-detail {
    font-size: 12px;
    color: var(--text-secondary);
}

.timeline-engagement {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 16px;
}

.pagination button {
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.pagination button:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.pagination button.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-dark);
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

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

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.empty-state::before {
    content: "No data";
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    color: var(--text-muted);
    opacity: 0.7;
}

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

@media (max-width: 768px) {
    .header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .header-left, .header-right {
        gap: 8px;
    }

    .stats-bar {
        gap: 8px;
        padding: 12px 16px;
    }

    .stat-card {
        min-width: 100px;
        padding: 10px 12px;
    }

    .stat-value {
        font-size: 18px;
    }

    .main-content {
        padding: 16px;
    }

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

    .sessions-header {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box input {
        width: 100%;
    }

    .sessions-list {
        grid-template-columns: 1fr;
    }

    .funnels-list {
        grid-template-columns: 1fr;
    }

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

    .db-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
}
