/* Harry Twitter Bot Dashboard - Clean Crypto Style */

/* Import Space Mono font */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

/* Global font for all elements including tooltips */
* {
    font-family: 'Space Mono', monospace;
}

/* ========== CUSTOM TOOLTIPS ========== */
.custom-tooltip {
    position: fixed;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.219);
    border-radius: 5px;
    padding: 10px 14px;
    color: #fff;
    font-family: 'Space Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    max-width: 300px;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    box-shadow: 5px 5px 5px 5px rgba(6, 238, 255, 0);
}

.custom-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

/* Chart.js Tooltip Override - Match Dashboard Style (.custom-tooltip) */
.chartjs-tooltip {
    background: #121212 !important;
    border: 1px solid rgba(255, 255, 255, 0.219) !important;
    border-radius: 5px !important;
    padding: 10px 14px !important;
    font-family: 'Space Mono', 'Fira Code', 'Courier New', monospace !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    max-width: 300px !important;
    box-shadow: 5px 5px 5px 5px rgba(6, 238, 255, 0) !important;
}

/* Chart tooltip table */
.chartjs-tooltip table {
    color: #fff !important;
    border-collapse: collapse !important;
}

.chartjs-tooltip table td {
    color: #fff !important;
    padding: 2px 6px !important;
    border: none !important;
    background: transparent !important;
}

/* Chart tooltip header */
.chartjs-tooltip thead th {
    color: var(--accent-green) !important;
    font-weight: 600 !important;
    padding-bottom: 6px !important;
    border: none !important;
    background: transparent !important;
}

/* Chart tooltip body */
.chartjs-tooltip tbody td {
    color: #fff !important;
    border: none !important;
    background: transparent !important;
}

/* Chart tooltip color box */
.chartjs-tooltip .legend-color {
    border-radius: 3px !important;
    width: 12px !important;
    height: 12px !important;
    border: none !important;
}

/* Override native title tooltips to use monospace */
[title] {
    font-family: 'Space Mono', monospace !important;
}

:root {
    --bg-primary: #0e0e0e;
    --bg-section: #0e0e0e;
    --bg-hover: #19282a;
    --border: #47474774;
    --text-primary: #e6f3ec;
    --text-secondary: #7d8590;
    --accent-green: #20B2AA;
    --accent-green-light: #48d1cc;
    --accent-blue: #e6edf3;
    --accent-red: #f85149;
}

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

body,
input,
button,
select,
textarea {
    font-family: 'Space Mono', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.15;
}

/* Tag Bar Slide-in Animation */
@keyframes slideInLeft {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }
    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

.tag-bar-segment {
    transform-origin: left center;
    animation: slideInLeft 0.5s ease-out forwards;
}

/* Tag Bar Segment Glow Animation */
@keyframes subtlePulseINSIDER {
    0%, 100% { box-shadow: 0 0 4px rgba(64, 224, 208, 0.5), inset 0 0 2px rgba(255,255,255,0.1); }
    50% { box-shadow: 0 0 12px rgba(64, 224, 208, 0.7), inset 0 0 4px rgba(255,255,255,0.2); }
}

@keyframes subtlePulseDEPLOYERS {
    0%, 100% { box-shadow: 0 0 4px rgba(241, 63, 63, 0.5), inset 0 0 2px rgba(255,255,255,0.1); }
    50% { box-shadow: 0 0 12px rgba(241, 63, 63, 0.7), inset 0 0 4px rgba(255,255,255,0.2); }
}

@keyframes subtlePulseREGULAR {
    0%, 100% { box-shadow: 0 0 4px rgba(255, 231, 19, 0.5), inset 0 0 2px rgba(255,255,255,0.1); }
    50% { box-shadow: 0 0 12px rgba(255, 231, 19, 0.7), inset 0 0 4px rgba(255,255,255,0.2); }
}

@keyframes subtlePulseETH {
    0%, 100% { box-shadow: 0 0 4px rgba(255, 255, 255, 0.5), inset 0 0 2px rgba(255,255,255,0.1); }
    50% { box-shadow: 0 0 12px rgba(255, 255, 255, 0.7), inset 0 0 4px rgba(255,255,255,0.2); }
}

@keyframes subtlePulseBASE {
    0%, 100% { box-shadow: 0 0 4px rgba(20, 141, 255, 0.5), inset 0 0 2px rgba(255,255,255,0.1); }
    50% { box-shadow: 0 0 12px rgba(20, 141, 255, 0.7), inset 0 0 4px rgba(255,255,255,0.2); }
}

@keyframes subtlePulseSOL {
    0%, 100% { box-shadow: 0 0 4px rgba(153, 69, 255, 0.5), inset 0 0 2px rgba(255,255,255,0.1); }
    50% { box-shadow: 0 0 12px rgba(153, 69, 255, 0.7), inset 0 0 4px rgba(255,255,255,0.2); }
}

/* ============================================
   SECTION TITLE CUSTOMIZATION
   ============================================ */
/* Edit these values to customize section titles */
:root {
    /* Title Colors */
    --title-color: #e0e0e0;           /* Accent teal - main title color */
    --title-hover-color: #dbdbdb;      /* Lighter teal on hover */
    --title-bg-color: transparent;     /* Background behind title */
    
    /* Title Sizes */
    --title-font-size: 18px;            /* Main title font size - matches project names */
    --title-font-weight: 300;          /* Bold (400-800) */
    --title-letter-spacing: 0.5px;      /* Letter spacing */
    
    /* Title Effects */
    --title-text-shadow: 0 0 15px rgba(224, 224, 224, 0);  /* Glow effect */
    --title-border-style: solid;        /* none, solid, dashed, dotted */
    --title-border-color: #50e966c6;     /* Border color */
    --title-border-width: 0px 0 0px 0; /* top right bottom left */
    --title-border-radius: 0px;         /* Rounded corners */
    
    /* Count/Number Styles */
    --title-count-color: #7d8590;      /* Color of (0) count */
    --title-count-font-size: 14px;     /* Size of count */
    
    /* Filter Header Background - Change this to any color */



    /* Filters Spacing - Space below title, above filters */
    --title-filter-gap: 6px;          /* Space between title and filters row */
    
    /* Filters to Table - Space below filters, above table */
    --filter-table-gap: 4px;         /* Space between filters and table */
    
    /* Table Borders */
    --table-border-style: none;       /* none, solid, dashed, dotted */
    --table-border-color: #2c2c2c;    /* Border color */
    --table-row-border-bottom: 0px;   /* Height of row bottom borders */
    --table-header-border-bottom: 1px; /* Header bottom border (column titles row) */
    
    /* Section Header Border - Border below filters, above table */
    --section-header-border-bottom: 1px; /* Border below filters section header */
}

/* Header - Glassmorphism Effect with Gradient Fade */
.header {
    background: #0e0e0e00;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 0px solid var(--border);
    padding: 3px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
}

.logo-container {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    overflow: hidden;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.logo {
    font-size: 28px;
}

.title {
    font-size: 31px;
    font-weight: 500;
    color: #cccccc;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.title .title-main {
    font-size: 31px;
    font-weight: 600;
    color: #cccccc;
}

.title .title-sub {
    font-size: 14px;
    font-weight: 400;
    color: #888888;
    letter-spacing: 0.5px;
}

.header-stats {
    display: flex;
    gap: 16px;
    flex: 1;
    justify-content: center;
}

.stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.stat:hover::before {
    left: 100%;
}

.stat:hover, [data-recent-activity-badge="BLUE"]:hover {
    background: rgba(32, 178, 170, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(32, 178, 170, 0.2);
}

/* Live updating indicator */
.stat.updating {
    animation: stat-update 0.3s ease;
}

@keyframes stat-update {
    0% { transform: scale(1); }
    100% { transform: scale(1); }
}

/* Compact Service Status in Header */
.service-status-compact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(10, 14, 20, 0.8);
    border: 1px solid rgba(32, 178, 170, 0.4);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-status-compact:hover, [data-recent-activity-badge="BLUE"]:hover {
    border-color: var(--accent-green);
    background: rgba(32, 178, 170, 0.15);
    box-shadow: 0 0 15px rgba(32, 178, 170, 0.3);
}

.service-status-compact.error {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.service-status-compact.error:hover, [data-recent-activity-badge="BLUE"]:hover {
    background: rgba(248, 81, 73, 0.15);
    box-shadow: 0 0 15px rgba(248, 81, 73, 0.3);
}

/* Pulsing Status Dot Animation */
@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
}

.service-status-compact .status-dot {
    font-size: 8px;
    display: inline-block;
    animation: pulse-dot 2s ease-in-out infinite;
}

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

.service-status-compact .status-text {
    color: var(--text-secondary);
}

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

.updated {
    color: var(--text-secondary);
    font-size: 14px;
}

.logout {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 5px;
    transition: all 0.2s;
}

.logout:hover, [data-recent-activity-badge="BLUE"]:hover {
    color: var(--accent-red);
    border-color: var(--accent-red);
}

/* ============================================
   LEFT SIDEBAR NAVIGATION
   ============================================ */

/* Main sidebar container */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 70px;
    background: #1d1d1d;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid var(--border);
    z-index: 1000;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Sidebar expanded state on hover */
.sidebar:hover {
    width: 220px;
}

/* Sidebar logo area */
.sidebar-logo {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-bottom: 0px solid var(--border);
    flex-shrink: 0;
}

.sidebar-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.sidebar:hover .sidebar-logo-img {
    transform: scale(1.1);
}

/* Navigation items container */
.sidebar-nav {
    flex: 1;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Individual nav item */
.sidebar-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-item:hover {
    color: var(--text-primary);
}

.sidebar-item.active {
    color: var(--accent-green);
}

.sidebar-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-green);
    border-radius: 0 2px 2px 0;
}

/* Nav icon */
.sidebar-icon {
    width: 70px;
    min-width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Nav label (shown on hover) */
.sidebar-label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    padding-right: 16px;
}

.sidebar:hover .sidebar-label {
    opacity: 1;
    transform: translateX(0);
}

/* Tooltip for collapsed state */
.sidebar-item::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.95);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    font-family: 'Space Mono', monospace;
}

/* Show tooltip only when sidebar is collapsed */
.sidebar:not(:hover) .sidebar-item:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(5px);
}

/* Bottom section of sidebar (user/settings) */
.sidebar-footer {
    padding: 16px 0;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

/* Main content wrapper - adds left padding for sidebar */
.main-wrapper {
    margin-left: 70px;
    min-height: 100vh;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar:hover + .main-wrapper,
.main-wrapper.sidebar-expanded {
    margin-left: 220px;
}

/* Dashboard container adjustment */
.dashboard {
    min-height: 100vh;
}

/* Responsive - hide sidebar on small screens */
@media (max-width: 768px) {
    .sidebar {
        width: 0;
        border-right: none;
    }
    
    .sidebar:hover {
        width: 220px;
        border-right: 1px solid var(--border);
    }
    
    .main-wrapper {
        margin-left: 0;
    }
    
    .sidebar:hover + .main-wrapper {
        margin-left: 0;
    }
    
    .main-wrapper.sidebar-expanded {
        margin-left: 0;
    }
    
    .sidebar-item::after {
        left: 220px;
    }
}

/* Header Navigation - Top Bar Navigation - CENTER */
.header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-nav-item {
    padding: 8px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.header-nav-item:hover {
    color: var(--text-primary);
}

.header-nav-item.active {
    color: var(--accent-green);
}

.header-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--accent-green);
    border-radius: 2px;
}

/* Hide sidebar completely */
.sidebar {
    display: none !important;
}

/* Main wrapper - remove sidebar margin */
.main-wrapper {
    margin-left: 0 !important;
}

/* Header Social Links */
.header-social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-link:hover {
    color: var(--accent-green);
    border-color: var(--accent-green);
    background: rgba(32, 178, 170, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(32, 178, 170, 0.25);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* Main Content */
.main {
    padding: 14px 12px;
    max-width: 99%;
    margin: 0 auto;
    overflow: visible;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 16px;
    overflow: visible;
    min-width: 0;
}

.two-column .section {
    margin-bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 700px;
    min-width: 0;
    overflow: hidden;
}

.two-column .section-content {
    flex: 1;
    overflow: auto;
    min-height: 650px;
    height: 650px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Projects Header - Ensure proper shrinking */
.projects-header-stacked {
    min-width: 0;
    overflow: hidden;
}

/* Filters row - allow wrapping on small screens */
.filters-row {
    min-width: 0;
    flex-wrap: wrap;
}

/* Sections */
.section {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: 5px;
    margin-bottom: 12px;
    overflow: visible;
}

.section-header {
    padding: 12px 18px;
    border-bottom: var(--section-header-border-bottom, 0px) solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(174, 40, 40, 0.02);
}

.section-header h2 {
    font-size: 18px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* Section Title Row - Title OUTSIDE the section, on top */
.section-title-row {
    padding: 12px 18px 0 18px;
    margin-bottom: 0;
    display: block;
    width: 100%;
}

/* Section title row when OUTSIDE the section (in two-column layout) */
.two-column > .section-title-row {
    margin-top: 0;
    padding-bottom: 8px;
}

.section-title-row .section-main-title {
    font-size: var(--title-font-size);
    font-weight: var(--title-font-weight);
    color: var(--title-color);
    margin: 0;
    white-space: nowrap;
    letter-spacing: var(--title-letter-spacing);
    text-shadow: var(--title-text-shadow);
    border-style: var(--title-border-style);
    border-color: var(--title-border-color);
    border-width: var(--title-border-width);
    border-radius: var(--title-border-radius);
    background: var(--title-bg-color);
    padding: 4px 8px;
    transition: all 0.3s ease;
}

.section-title-row .section-main-title:hover {
    color: var(--title-hover-color);
}

.section-title-row .section-main-title span {
    color: var(--title-count-color);
    font-weight: 400;
    font-size: var(--title-count-font-size);
}

/* Projects Header - Stacked Layout (Title on top, filters in row) */
.projects-header-stacked {
    display: flex;
    flex-direction: column;
    gap: var(--title-filter-gap, 16px);
    padding: 8px 18px;
    background: var(--filter-header-bg);
}

.projects-header-stacked h2 {
    font-size: var(--title-font-size);
    font-weight: var(--title-font-weight);
    color: var(--title-color);
    margin: 0;
    white-space: nowrap;
    align-self: flex-start;
    letter-spacing: var(--title-letter-spacing);
    text-shadow: var(--title-text-shadow);
    border-style: var(--title-border-style);
    border-color: var(--title-border-color);
    border-width: var(--title-border-width);
    border-radius: var(--title-border-radius);
    background: var(--title-bg-color);
    padding: 4px 8px;
    transition: all 0.3s ease;
}

.projects-header-stacked h2:hover, [data-recent-activity-badge="BLUE"]:hover {
    color: var(--title-hover-color);
}

.projects-header-stacked h2 span {
    color: var(--title-count-color);
    font-weight: 400;
    font-size: var(--title-count-font-size);
}

/* ============================================
   FILTER ROW GRID - Column-based alignment
   Attention Leaders: 4-column grid with search + time + tags + badges + CA
   Attention Stream: 4-column grid adapted for its content (no search/time)
   ============================================ */

/* Filter row grid */
.filters-row {
    display: grid;
    grid-template-columns: 1.8fr 2fr 0.8fr;
    gap: 0;
    width: 100%;
    margin-bottom: 1px;
    align-items: stretch;
}

.filters-row > * {
    padding: 1px 4px;
    display: flex;
    align-items: center;
}

.filters-row > *:first-child {
    padding-left: 2px;
}

.filters-row > *:last-child {
    padding-right: 2px;
}

/* Subtle group separation between filter clusters */
.filters-row > * + * {
    border-left: 1px solid rgba(71, 71, 71, 0.35);
}

/* Individual filter containers - fill the grid cell width */
.filters-row .compact-search {
    display: flex;
    align-items: center;
    width: 100%;
}

.filters-row .compact-search input {
    width: 100%;
    padding: 4px 10px;
    font-size: 12px;
    transition: all 0.3s ease;
    height: 22px;
    box-sizing: border-box;
}

.filters-row .compact-search input:focus {
    box-shadow: 0 0 12px rgba(32, 178, 170, 0.5);
    border-color: var(--accent-green);
}

.filters-row .token-age-filter {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    width: 100%;
}

.filters-row .follower-filter {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
}

/* Filter groups in filters-row-2 - Proportional columns */
.filters-row-2 {
    display: grid;
    grid-template-columns: 1.8fr 2fr 1.5fr 1fr;
    gap: 0;
    width: 100%;
    align-items: stretch;
}

.filters-row-2 > * {
    padding: 2px 6px;
    display: flex;
    align-items: center;
}

.filters-row-2 > *:first-child {
    padding-left: 4px;
}

.filters-row-2 > *:last-child {
    padding-right: 4px;
}

/* Subtle group separation for filters-row-2 */
.filters-row-2 > * + * {
    border-left: 1px solid rgba(71, 71, 71, 0.35);
}

/* ============================================
   ATTENTION STREAM SPECIFIC FILTERS
   Stream filters row 1: Only 2 columns (Token Age + Max Followers)
   ============================================ */

/* Stream filters row 1 - 2 columns layout */
.stream-filters-row {
    display: grid;
    grid-template-columns: 1.9fr 2fr;
    gap: 0;
    width: 100%;
    margin-bottom: 2px;
    align-items: stretch;
    min-height: 26px;
}

/* Ensure both header rows have consistent minimum heights */
.stream-filters-row > *,
.filters-row > * {
    min-height: 24px;
}

.stream-filters-row > * {
    padding: 1px 4px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.stream-filters-row > *:first-child {
    padding-left: 2px;
}

.stream-filters-row > *:last-child {
    padding-right: 2px;
}

/* Subtle group separation for stream filters */
.stream-filters-row > * + * {
    border-left: 1px solid rgba(71, 71, 71, 0.35);
}

/* Project Age filter - medium compact */
.stream-filters-row .token-age-filter {
    gap: 4px;
}

.stream-filters-row .token-age-input {
    width: 140px;
    min-width: 140px;
    padding: 3px 8px;
    font-size: 12px;
    height: 22px;
    box-sizing: border-box;
}

.stream-filters-row .token-age-toggle {
    padding: 3px 6px;
    min-width: 24px;
}

.stream-filters-row .token-age-unit {
    font-size: 11px;
}

/* Stream Section Row 2 - 3 columns matching Leaders proportions (without time-filters) */
.stream-filters-row-2 {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 0;
    width: 100%;
    align-items: stretch;
}

.stream-filters-row-2 > * {
    padding: 2px 6px;
    display: flex;
    align-items: center;
}

.stream-filters-row-2 > *:first-child {
    padding-left: 4px;
}

.stream-filters-row-2 > *:last-child {
    padding-right: 4px;
}

.stream-filters-row-2 > * + * {
    border-left: 1px solid rgba(71, 71, 71, 0.35);
}

/* Ensure CA filter buttons don't wrap in stream */
.stream-filters-row-2 .ca-filters {
    display: flex !important;
    flex-wrap: nowrap !important;
    white-space: nowrap;
    gap: 2px;
}

/* Filter groups inside grid cells */
.filters-row-2 .time-filters,
.filters-row-2 .tag-filters,
.filters-row-2 .badge-filters,
.filters-row-2 .ca-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    align-items: center;
}

/* Compact search input */
.filters-row .compact-search input {
    width: 100%;
    padding: 4px 10px;
    font-size: 12px;
    height: 22px;
}

/* Time filters in row 2 - match badge filter styling */
.filters-row-2 .time-filters {
    display: flex;
    gap: 2px;
}

.filters-row-2 .time-filters .tab {
    padding: 2px 6px;
    font-size: 12px;
    min-width: 28px;
    border-radius: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-weight: 500;
    box-shadow: none;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filters-row-2 .time-filters .tab.active {
    background: #20B2AA;
    color: #fff;
    border-color: #20B2AA;
    box-shadow: none;
    font-weight: 500;
}

/* Tag filters */
.filters-row .tag-filters,
.filters-row-2 .tag-filters,
.stream-filters-row-2 .tag-filters {
    display: flex;
    gap: 2px;
    align-items: center;
    flex-wrap: wrap;
}

/* Badge filters */
.filters-row .badge-filters,
.filters-row-2 .badge-filters {
    display: flex;
    gap: 2px;
    align-items: center;
}

/* CA filters */
.filters-row .ca-filters,
.filters-row-2 .ca-filters {
    display: flex;
    gap: 2px;
    align-items: center;
}

/* Two-row filter layout for projects section */
.filters-row-1 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0;
    width: 100%;
    align-items: stretch;
}

.filters-row-1 > * {
    padding: 0 12px;
    border-right: 1px solid var(--border);
}

.filters-row-1 > *:first-child {
    padding-left: 0;
}

.filters-row-1 > *:last-child {
    border-right: none;
}

/* Search group */
.search-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Old classes for compatibility */
.projects-header-inline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 18px;
}

.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.header-right-filters {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.inline-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.inline-filters .time-filters {
    display: flex;
    gap: 2px;
}

.inline-filters .time-filters .tab {
    padding: 5px 10px;
    font-size: 12px;
    min-width: 36px;
}

.inline-filters .tag-filters {
    display: flex;
    gap: 4px;
    padding-left: 8px;
    border-left: 1px solid var(--border);
}

.inline-filters .tag-filters .tag-filter {
    padding: 5px 10px;
    font-size: 12px;
}

.inline-filters .tag-filters .tag-filter[data-tag="INSIDER"],
.inline-filters .tag-filters .tag-filter[data-tag="DEPLOYERS"],
.inline-filters .tag-filters .tag-filter[data-tag="REGULAR"] {
    padding: 5px 8px;
    font-size: 14px;
}

.compact-search {
    width: 120px;
    min-width: 120px;
    padding: 6px 10px;
    font-size: 13px;
}

@media (max-width: 1200px) {
    .projects-header-inline {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .header-center,
    .header-right-filters {
        align-items: flex-start;
        justify-self: start;
    }
    
    .inline-filters {
        flex-wrap: wrap;
        width: 100%;
    }
    
    .compact-search {
        flex: 1;
        max-width: 150px;
    }
}

@media (max-width: 768px) {
    .projects-header-inline {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .inline-filters {
        width: 100%;
    }
    
    .compact-search {
        width: 100%;
        max-width: none;
    }
}

.tabs {
    display: flex;
    gap: 3px;
    background: var(--bg-primary);
    padding: 3px;
    border-radius: 5px;
}

.tab {
    padding: 7px 14px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    border-radius: 17px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab.active {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-light));
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(32, 178, 170, 0.4);
}

.tab:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab:active {
    transform: scale(0.95);
}

.search, .filter {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 5px;
    min-width: 180px;
    transition: all 0.3s ease;
    height: 22px;
}

.search:focus, .filter:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(32, 178, 170, 0.2), 0 0 15px rgba(32, 178, 170, 0.15);
}

.section-content {
    padding: 0;
    overflow: visible;
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    min-height: 550px;
    height: 550px;
}

.data-table th {
    text-align: left;
    padding: 8px 14px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--table-border-color);
    background: rgba(134, 134, 134, 0.028);
}

.data-table td {
    padding: 6px 14px;
    border-bottom: var(--table-row-border-bottom) solid var(--table-border-color);
    border-style: var(--table-border-style);
    transition: all 0.2s ease;
}

.data-table tr {
    transition: all 0.2s ease;
}

.data-table tbody tr:hover, [data-recent-activity-badge="BLUE"]:hover {
    background: var(--bg-hover);
}

/* Trending project highlight - subtle orange left border */
.trending-row .project-info .x-link {
    color: #ff6b35 !important;
    font-weight: inherit;
}

.trending-row td:first-child {
    border-left: 2px solid #ff6b35;
}

.trending-row {
    background: rgba(255, 107, 53, 0.03);
}

/* X Badge images - inline with username */
.x-badge {
    display: inline-block;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-left: 4px;
}

/* Badge on PFP - positioned on right edge, outside PFP frame, centered vertically */
.pfp-badge {
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

/* Adjust vertical position of badge on PFP - higher or lower */
.pfp-badge {
    top: 25%;  /* Lower value = higher on PFP, higher value = lower */
}

.pfp-badge .x-badge {
    display: block;
    width: 22px;
    height: 25px;
    margin: 0;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Project cell - more space between PFP and username/bio */
.project-cell {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    gap: 16px;
}

/* Fire emoji badge - just the emoji, no wide background */
.trending-badge {
    margin-right: 4px;
    font-size: 12px;
    font-weight: inherit;
}

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

/* Rank column */
.data-table td:first-child {
    font-weight: 700;
    color: var(--accent-green-light);
}

/* Project cell with PFP */
.project-cell {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    gap: 20px;
}


.project-cell .pfp-container {
    display: inline-block;
    vertical-align: middle;
}

.pfp-container {
    display: inline-block;
}

.project-pfp {
    width: 51px;
    height: 51px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    background: var(--bg-primary);
    display: inline-block;
    vertical-align: middle;
}

.project-pfp-link {
    display: inline-block;
    vertical-align: middle;
    line-height: 0;
    transition: transform 0.2s ease;
}

.project-pfp-link:hover, [data-recent-activity-badge="BLUE"]:hover {
    transform: scale(1.1);
}

.project-pfp-link:hover .project-pfp {
    border-color: var(--accent-blue);
    box-shadow: 0 0 12px rgba(88, 166, 255, 0.4);
}

.pfp-container {
    position: relative;
    display: inline-block;
}

.follower-badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: #20b2abd2;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0);
}

.project-info {
    display: inline-flex;
    flex-direction: column;
    vertical-align: middle;
    gap: 1px;
    font-size: 18px;
    font-weight: 300; /* Font weight for project names */
}

.project-description {
    color: var(--text-secondary);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    line-height: 1.3;
    display: inline-block;
    vertical-align: middle;
}

/* Activity bar cell */
.activity-cell {
    width: 150px;
}

/* Follows cell with follower PFPs */
.follows-cell {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    vertical-align: middle;
    gap: 8px;
    min-width: 200px;
    overflow: visible;
    width: 100%;
    height: 100%;
}

/* Ensure inner content is vertically centered */
.follows-cell .follower-pfps-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    vertical-align: middle;
}

.follows-cell .follows-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    height: 100%;
}

.follows-count {
    font-weight: 700;
    color: #fff;
    font-size: 14px;
    background: transparent;
    padding: 4px 10px;
    border: none;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    text-shadow: none;
}

.follower-pfps-row {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    height: 41px;
}

.follower-pfps-row .follower-mini-link {
    display: inline-flex;
    vertical-align: middle;
    margin-left: 0;
    height: 41px;
    width: 41px;
}


.follower-pfps-row .follower-mini-link:first-child {
    margin-left: 0;
}

.follower-mini-link {
    transition: transform 0.2s, z-index 0s;
    position: relative;
    z-index: 1;
}

.follower-mini-link:hover, [data-recent-activity-badge="BLUE"]:hover {
    transform: scale(1.2);
    z-index: 10;
}

.follower-mini-pfp {
    width: 41px;
    height: 41px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid var(--bg-section);
    background: var(--bg-primary);
    display: inline-block;
    vertical-align: middle;
}

.activity-bar-bg {
    height: 8px;
    background: var(--border);
    border-radius: 5px;
    overflow: hidden;
}

.activity-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-green-light));
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* Activity List - Fixed height with scrolling */
.activity-list {
    height: 1300px;
    max-height: 1300px;
    min-height: 1300px;
    overflow-y: auto;
    overflow-x: hidden;
    overflow: visible;
}

/* Activity Header Row - Match .data-table th styling */
.activity-header-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 14px;
    background: rgba(134, 134, 134, 0.028);
    border-bottom: 1px solid var(--table-border-color);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-header-row span:first-child {
    padding-left: 0px;
}

.activity-header-row span:last-child {
    padding-right: 200px;
}

.activity-item {
    padding: 8px 14px 16px;
    border-bottom: none;
    border-top: none;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    overflow: visible;
}

/* Zebra striping for Recent Activity - same as Top Projects table */
.activity-list .activity-item:nth-child(even) {
    background: rgba(134, 134, 134, 0.028);
}

.activity-list .activity-item:nth-child(even):hover, [data-recent-activity-badge="BLUE"]:hover {
    background: var(--bg-hover);
}


.activity-item:hover, [data-recent-activity-badge="BLUE"]:hover {
    background: var(--bg-hover);
}

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

.activity-icon {
    font-size: 18px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: 50%;
}

/* Activity PFPs */
.activity-pfps {
    display: flex;
    align-items: center;
    gap: 4px;
}

.activity-pfp-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.activity-pfp {
    width: 41px;
    height: 41px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    background: var(--bg-primary);
}

.activity-pfp-tag {
    font-size: 10px;
    line-height: 1;
}

.activity-arrow {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: bold;
    padding: 0 4px;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 18px;
    display: grid;
    grid-template-columns: 280px 20px 200px;
    align-items: flex-start;
    gap: 6px;
    overflow: visible;
}


.activity-follower-wrapper,
.activity-project-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
}

.activity-follower-wrapper {
    justify-content: center;
    align-self: center;
    flex: 1;
}

.activity-project-wrapper {
    justify-content: flex-start;
    flex-direction: row;
    overflow: visible;
    min-height: 1px;
}

/* Ensure project-cell in activity has enough height for badge */
.activity-project-wrapper .project-cell {
    display: flex;
    align-items: flex-start;
    overflow: visible;
    min-height: 1px;
}

.activity-project-wrapper .pfp-container {
    overflow: visible;
    position: relative;
    flex-shrink: 0;
}



/* Follower tag ring - centered in column */
.follower-tag-ring-small {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-arrow-inline {
    color: var(--text-secondary);
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

.activity-text strong {
    color: var(--accent-blue);
    font-weight: 600;
}


/* Inline PFPs in activity text */
.inline-pfp {
    width: 41px;
    height: 41px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    background: var(--bg-primary);
    display: inline-block;
    vertical-align: middle;
}


.activity-meta {
    color: var(--text-secondary);
    margin-top: 8px;
    font-size: 14px;
    margin-top: 5px;
    line-height: 1.2;
}


.activity-time {
    color: var(--text-secondary);
    font-size: 14px;
    white-space: nowrap;
}

/* Account Actions */
.account-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag-select {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    min-width: 100px;
}

.tag-select:hover, [data-recent-activity-badge="BLUE"]:hover {
    border-color: var(--accent-green);
}

.tag-select:focus {
    outline: none;
    border-color: var(--accent-green);
}

.note-input {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 4px;
    width: 120px;
    transition: border-color 0.2s;
}

.note-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.note-input::placeholder {
    color: var(--text-secondary);
}

/* Notify toggle button */
.btn-notify {
    background: rgba(136, 136, 136, 0.15);
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
    margin-right: 4px;
}

.btn-notify-on {
    background: rgba(35, 134, 54, 0.25);
}

.btn-notify-on:hover {
    background: rgba(35, 134, 54, 0.4);
}

.btn-notify-off {
    background: rgba(136, 136, 136, 0.15);
}

.btn-notify-off:hover {
    background: rgba(136, 136, 136, 0.3);
}

.btn-delete {
    background: rgba(248, 81, 73, 0.15);
    border: 1px solid rgba(248, 81, 73, 0.3);
    color: var(--accent-red);
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-delete:hover, [data-recent-activity-badge="BLUE"]:hover {
    background: rgba(248, 81, 73, 0.25);
    border-color: var(--accent-red);
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.status-badge.verified {
    background: rgba(88, 166, 255, 0.15);
    color: var(--accent-blue);
}

.status-badge.standard {
    background: rgba(125, 133, 144, 0.15);
    color: var(--text-secondary);
}

/* Service Status */
.service-status-item {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
}

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

.service-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.service-status-icon {
    font-size: 16px;
}

.service-status-icon.status-running {
    color: var(--accent-green);
}

.service-status-icon.status-stopped {
    color: var(--accent-red);
}

.service-name {
    font-weight: 600;
    font-size: 16px;
    flex: 1;
}

.service-status-text {
    font-size: 14px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    background: var(--bg-primary);
}

.service-ok {
    color: var(--accent-green);
    font-size: 14px;
    margin-top: 2px;
}

.service-errors {
    margin-top: 8px;
    padding: 10px;
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.2);
    border-radius: 4px;
}

.error-count {
    color: var(--accent-red);
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
}

.error-line {
    color: var(--text-secondary);
    font-size: 13px;
    font-family: 'Space Mono', monospace;
    padding: 2px 0;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.error-line:last-child {
    border-bottom: none;
}

/* Loading & Empty */
.loading, .empty {
    padding: 40px;
    text-align: center;
    color: var(--text-secondary);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover, [data-recent-activity-badge="BLUE"]:hover {
    background: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1200px) {
    .two-column {
        grid-template-columns: 1fr;
    }
    
    .two-column .section {
        margin-bottom: 16px;
    }
}

@media (max-width: 1024px) {
    .header {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .header-stats {
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .main {
        padding: 12px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .controls {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .search {
        flex: 1;
    }
    
    .two-column {
        gap: 12px;
    }
}

/* X.com Profile Links */
.x-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    font-weight: 300;
    font-size: 18px; /* Font size for follower names */
}

.x-link:hover, [data-recent-activity-badge="BLUE"]:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}


/* In activity text, the links should match the strong styling */
.activity-text .x-link {
    color: var(--accent-blue);
    font-weight: 300;
}

.activity-text .x-link:hover, [data-recent-activity-badge="BLUE"]:hover {
    text-decoration: underline;
}

/* Time Filter Buttons */
.time-filters {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}

.time-filters .tab {
    padding: 5px 11px;
    font-size: 13px;
    min-width: 40px;
}

/* CA Filter - same style as time-filters */
.ca-filters {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.ca-filter-label {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    margin-right: 2px;
}

.filters-row .ca-filters .tab,
.filters-row-2 .ca-filters .tab,
.stream-filters-row-2 .ca-filters .tab {
    padding: 2px 6px;
    font-size: 12px;
    min-width: 28px;
    border-radius: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-weight: 500;
    box-shadow: none;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filters-row .ca-filters .tab.active,
.filters-row-2 .ca-filters .tab.active,
.stream-filters-row-2 .ca-filters .tab.active {
    background: #20B2AA;
    color: #fff;
    border-color: #20B2AA;
    box-shadow: none;
    font-weight: 500;
}

/* Token Age Filter - Match follower-filter styling */
.token-age-filter {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 0;
}

.filters-row .token-age-filter {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.token-age-label {
    display: none;
}

.token-age-toggle {
    width: auto;
    height: auto;
    padding: 1px 4px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    line-height: 1.2;
}

.token-age-toggle:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.token-age-toggle.selected {
    background: var(--accent-green);
    border: 1px solid var(--accent-green);
    color: #fff;
    border-radius: 5px;
}

.token-age-input {
    width: 140px;
    min-width: 140px;
    padding: 3px 8px;
    font-size: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text-primary);
    text-align: center;
    flex: 1;
    transition: all 0.3s ease;
    height: 22px;
    box-sizing: border-box;
}

.token-age-input:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 12px rgba(32, 178, 170, 0.5);
}

.token-age-input::-webkit-outer-spin-button,
.token-age-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.token-age-input[type=number] {
    -moz-appearance: textfield;
}

.token-age-unit {
    color: var(--text-secondary);
    font-size: 12px;
    margin-left: 2px;
    white-space: nowrap;
}

/* Charts Section */
#chartsSection {
    margin-top: 16px;
}

#chartsSection .section-header {
    justify-content: flex-start;
    padding-left: 20px;
}

#chartsSection .chart-info {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-primary);
}

/* Chart Header Row - Title and controls on same line */
.chart-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.chart-header-row h3 {
    margin: 0;
}

.chart-filters-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-filters-inline label {
    color: var(--text-secondary);
    font-size: 14px;
}

.chart-filters-inline select {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 8px 14px;
    color: var(--text-secondary);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.chart-filters-inline select:hover, [data-recent-activity-badge="BLUE"]:hover {
    border-color: var(--accent-green);
    color: var(--text-primary);
}

.chart-filters-inline select:focus {
    outline: none;
    border-color: var(--accent-green);
}

.chart-filters-inline .btn {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 8px 14px;
    color: var(--text-secondary);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.chart-filters-inline .btn:hover, [data-recent-activity-badge="BLUE"]:hover {
    color: var(--accent-green);
    border-color: var(--accent-green);
}

.charts-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.chart-wrapper {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.chart-wrapper h3 {
    margin: 0 0 5px 0;
    color: var(--text-primary);
    font-size: 18px;
}

.chart-description {
    margin: 0 0 15px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.chart-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.chart-filters label {
    color: var(--text-secondary);
    font-size: 14px;
}

.chart-filters select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 12px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
}

.chart-filters .btn {
    padding: 6px 16px;
    font-size: 14px;
}

.chart-container {
    position: relative;
    height: 500px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    overflow: hidden;
}

.chart-container canvas {
    display: block;
    cursor: grab;
}

.chart-container canvas:active {
    cursor: grabbing;
}

.chart-container .loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-secondary);
}

.chart-stats {
    margin-top: 15px;
    padding: 10px 15px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.chart-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.chart-stats .stat-value {
    color: var(--accent-green);
    font-weight: 600;
}

/* Chart Tooltip - Click to show, stays visible */
.chart-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    pointer-events: auto;
    z-index: 1000;
    max-width: 300px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: opacity 0.2s ease;
    font-family: 'Space Mono', monospace !important;
}

.chart-tooltip.hiding {
    opacity: 0;
}

/* Close button for tooltip */
.chart-tooltip .tooltip-close {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(248, 81, 73, 0.2);
    border: 1px solid rgba(248, 81, 73, 0.4);
    color: var(--accent-red);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-tooltip .tooltip-close:hover, [data-recent-activity-badge="BLUE"]:hover {
    background: rgba(248, 81, 73, 0.4);
}

.chart-tooltip h4 {
    margin: 0 0 8px 0;
    color: var(--accent-green);
    font-size: 14px;
}

.chart-tooltip p {
    margin: 0 0 5px 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.4;
}

.chart-tooltip .shared-kols {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.chart-tooltip .kol-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
}

.chart-tooltip .kol-tag {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-primary);
}

/* Legend */
.chart-legend {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

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

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

/* Tag Filters */
.tag-filters {

    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.tag-filter {
    padding: 6px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    font-weight: 500;
}


.badge-filters {
    display: flex;
    align-items: center;
    gap: 2px;
}

.badge-filter {
    padding: 2px 6px;
    border-radius: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    line-height: 1.2;
    font-weight: 500;
}

.badge-filter-img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
}

.badge-filter.active {
    background: #20B2AA;
    color: #fff;
    border-radius: 20px;
    border-color: #20B2AA;
    box-shadow: none;
    font-weight: 500;
}

/* Tag filter active states - use the tag-ring active styles for consistency */
.tag-filter.active {
    /* Inherit styles from tag-ring.active for each specific tag */
    width: 18px !important;
    height: 18px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    min-width: auto !important;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* INSIDER - active (filled cyan) */
.tag-filter.active[data-tag="INSIDER"],
.tag-filter.active[data-activity-tag="INSIDER"],
.tag-filter.active[data-recent-activity-tag="INSIDER"] {
    background: rgba(64, 224, 208, 0.75);
    border: 2px solid #40E0D0;
    border-radius: 50% !important;
    box-shadow: none;
}

/* DEPLOYERS - active (filled red) */
.tag-filter.active[data-tag="DEPLOYERS"],
.tag-filter.active[data-activity-tag="DEPLOYERS"],
.tag-filter.active[data-recent-activity-tag="DEPLOYERS"] {
    background: rgba(241, 63, 63, 0.75);
    border: 2px solid #f13f3f;
    border-radius: 50% !important;
    box-shadow: none;
}

/* REGULAR - active (filled yellow) */
.tag-filter.active[data-tag="REGULAR"],
.tag-filter.active[data-activity-tag="REGULAR"],
.tag-filter.active[data-recent-activity-tag="REGULAR"] {
    background: rgba(250, 228, 33, 0.85);
    border: 2px solid #fde512;
    border-radius: 50% !important;
    box-shadow: none;
}

/* ETH - active (filled white/silver) */
.tag-filter.active[data-tag="ETH"],
.tag-filter.active[data-activity-tag="ETH"],
.tag-filter.active[data-recent-activity-tag="ETH"] {
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid #ffffff;
    border-radius: 50% !important;
    box-shadow: none;
}

/* BASE - active (filled blue) */
.tag-filter.active[data-tag="BASE"],
.tag-filter.active[data-activity-tag="BASE"],
.tag-filter.active[data-recent-activity-tag="BASE"] {
    background: rgba(20, 141, 255, 0.75);
    border: 2px solid #148dff;
    border-radius: 50% !important;
    box-shadow: none;
}

/* SOL - active (filled purple) */
.tag-filter.active[data-tag="SOL"],
.tag-filter.active[data-activity-tag="SOL"],
.tag-filter.active[data-recent-activity-tag="SOL"] {
    background: rgba(153, 69, 255, 0.75);
    border: 2px solid #9945FF;
    border-radius: 50% !important;
    box-shadow: none;
}

/* Reset button styling */
.tag-filter.reset-btn {
    padding: 6px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 13px;
    border-radius: 4px;
    font-weight: 500;
}

.tag-filter.reset-btn:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

/* Badge filter - Blue */
.badge-filter.badge-blue[data-badge="BLUE"], .badge-filter.badge-blue[data-recent-activity-badge="BLUE"] {
    background: transparent;
    border-color: transparent;
}

.badge-filter.badge-blue[data-badge="BLUE"]:hover, .badge-filter.badge-blue[data-recent-activity-badge="BLUE"]:hover {
    border-color: #1DA1F2;
    box-shadow: 0 0 8px #1DA1F2;
}

.badge-filter.badge-blue[data-badge="BLUE"].active, .badge-filter.badge-blue[data-recent-activity-badge="BLUE"].active {
    background: #1da0f200;
    border-color: #1DA1F2;
    color: #fff;
    box-shadow: 0 0 10px #1DA1F2;
}

/* Badge filter - Gold */
.badge-filter.badge-gold[data-badge="GOLD"], .badge-filter.badge-gold[data-recent-activity-badge="GOLD"] {
    background: transparent;
    border-color: transparent;
}

.badge-filter.badge-gold[data-badge="GOLD"]:hover, .badge-filter.badge-gold[data-recent-activity-badge="GOLD"]:hover {
    border-color: #FFD700;
    box-shadow: 0 0 8px #FFD700;
}

.badge-filter.badge-gold[data-badge="GOLD"].active, .badge-filter.badge-gold[data-recent-activity-badge="GOLD"].active {
    background: #ffd90000;
    border-color: #FFD700;
    color: #000;
    box-shadow: 0 0 10px #FFD700;
}

/* Badge filter - Gray */
.badge-filter.badge-gray[data-badge="GRAY"], .badge-filter.badge-gray[data-recent-activity-badge="GRAY"] {
    background: transparent;
    border-color: transparent;
}

.badge-filter.badge-gray[data-badge="GRAY"]:hover, .badge-filter.badge-gray[data-recent-activity-badge="GRAY"]:hover {
    border-color: #808080;
    box-shadow: 0 0 8px #808080;
}

.badge-filter.badge-gray[data-badge="GRAY"].active, .badge-filter.badge-gray[data-recent-activity-badge="GRAY"].active {
    background: #80808000;
    border-color: #808080;
    color: #fff;
    box-shadow: 0 0 10px #808080;
}

/* Small ring buttons for tag filters */
.tag-filter.tag-ring {
    width: 18px !important;
    height: 18px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 2px solid;
    background: rgba(255, 255, 255, 0);
    min-width: auto !important;
    flex-shrink: 0;
    box-shadow: none;
    backdrop-filter: blur(2px);
    transition: all 0.3s ease;
}

.tag-filter.tag-ring[data-tag="INSIDER"],
.tag-filter.tag-ring[data-activity-tag="INSIDER"],
.tag-filter.tag-ring[data-recent-activity-tag="INSIDER"] {
    border-color: rgba(64, 224, 208, 0.6);
    box-shadow: none;
}

.tag-filter.tag-ring[data-tag="INSIDER"].active,
.tag-filter.tag-ring[data-activity-tag="INSIDER"].active,
.tag-filter.tag-ring[data-recent-activity-tag="INSIDER"].active {
    background: rgba(64, 224, 208, 0.75);
    border-color: #40E0D0;
    box-shadow: none;


}

.tag-filter.tag-ring[data-tag="DEPLOYERS"],
.tag-filter.tag-ring[data-activity-tag="DEPLOYERS"],
.tag-filter.tag-ring[data-recent-activity-tag="DEPLOYERS"] {
    border-color: rgba(241, 63, 63, 0.6);
    box-shadow: none;
}

.tag-filter.tag-ring[data-tag="DEPLOYERS"].active,
.tag-filter.tag-ring[data-activity-tag="DEPLOYERS"].active,
.tag-filter.tag-ring[data-recent-activity-tag="DEPLOYERS"].active {
    background: rgba(241, 63, 63, 0.75);
    border-color: #f13f3f;
    box-shadow: none;
}

.tag-filter.tag-ring[data-tag="REGULAR"],
.tag-filter.tag-ring[data-activity-tag="REGULAR"],
.tag-filter.tag-ring[data-recent-activity-tag="REGULAR"] {
    border-color: rgba(251, 213, 0, 0.681);
    box-shadow: none;
}

.tag-filter.tag-ring[data-tag="REGULAR"].active,
.tag-filter.tag-ring[data-activity-tag="REGULAR"].active,
.tag-filter.tag-ring[data-recent-activity-tag="REGULAR"].active {
    background: rgba(250, 228, 33, 0.85);
    border-color: #fde512;
    box-shadow: none;
}

.tag-filter.tag-ring:hover, [data-recent-activity-badge="BLUE"]:hover {
    transform: scale(1.15);
    filter: brightness(1.2);
}

.tag-filter.tag-ring[data-tag="INSIDER"]:hover,
.tag-filter.tag-ring[data-activity-tag="INSIDER"]:hover,
.tag-filter.tag-ring[data-recent-activity-tag="INSIDER"]:hover, [data-recent-activity-badge="BLUE"]:hover {
    box-shadow: 
        0 0 15px rgba(64, 224, 208, 0.6),
        inset 0 0 6px rgba(64, 224, 208, 0.2);
}

.tag-filter.tag-ring[data-tag="DEPLOYERS"]:hover,
.tag-filter.tag-ring[data-activity-tag="DEPLOYERS"]:hover,
.tag-filter.tag-ring[data-recent-activity-tag="DEPLOYERS"]:hover, [data-recent-activity-badge="BLUE"]:hover {
    box-shadow: 
        0 0 15px rgba(241, 63, 63, 0.6),
        inset 0 0 6px rgba(241, 63, 63, 0.2);
}

.tag-filter.tag-ring[data-tag="REGULAR"]:hover,
.tag-filter.tag-ring[data-activity-tag="REGULAR"]:hover,
.tag-filter.tag-ring[data-recent-activity-tag="REGULAR"]:hover, [data-recent-activity-badge="BLUE"]:hover {
    box-shadow:
        0 0 15px rgba(253, 234, 60, 0.5),
        inset 0 0 6px rgba(253, 234, 60, 0.2);
}

/* ETH tag filter button */
.tag-filter.tag-ring[data-tag="ETH"],
.tag-filter.tag-ring[data-activity-tag="ETH"],
.tag-filter.tag-ring[data-recent-activity-tag="ETH"] {
    border-color: rgba(192, 192, 192, 0.8);
    box-shadow: none;
}

.tag-filter.tag-ring[data-tag="ETH"].active,
.tag-filter.tag-ring[data-activity-tag="ETH"].active,
.tag-filter.tag-ring[data-recent-activity-tag="ETH"].active {
    background: rgba(255, 255, 255, 0.85);
    border-color: #ffffff;
    box-shadow: none;
}

.tag-filter.tag-ring[data-tag="ETH"]:hover,
.tag-filter.tag-ring[data-activity-tag="ETH"]:hover,
.tag-filter.tag-ring[data-recent-activity-tag="ETH"]:hover, [data-recent-activity-badge="BLUE"]:hover {
    box-shadow: 
        0 0 15px rgba(255, 255, 255, 0.6),
        inset 0 0 6px rgba(255, 255, 255, 0.3);
}

/* BASE tag filter button */
.tag-filter.tag-ring[data-tag="BASE"],
.tag-filter.tag-ring[data-activity-tag="BASE"],
.tag-filter.tag-ring[data-recent-activity-tag="BASE"] {
    border-color: rgba(20, 141, 255, 0.7);
    box-shadow: none;
}

.tag-filter.tag-ring[data-tag="BASE"].active,
.tag-filter.tag-ring[data-activity-tag="BASE"].active,
.tag-filter.tag-ring[data-recent-activity-tag="BASE"].active {
    background: rgba(20, 141, 255, 0.75);
    border-color: #148dff;
    box-shadow: none;
}

.tag-filter.tag-ring[data-tag="BASE"]:hover,
.tag-filter.tag-ring[data-activity-tag="BASE"]:hover,
.tag-filter.tag-ring[data-recent-activity-tag="BASE"]:hover, [data-recent-activity-badge="BLUE"]:hover {
    box-shadow: 
        0 0 15px rgba(20, 141, 255, 0.6),
        inset 0 0 6px rgba(20, 141, 255, 0.3);
}

/* SOL tag filter button */
.tag-filter.tag-ring[data-tag="SOL"],
.tag-filter.tag-ring[data-activity-tag="SOL"],
.tag-filter.tag-ring[data-recent-activity-tag="SOL"] {
    border-color: rgba(153, 69, 255, 0.7);
    box-shadow: none;
}

.tag-filter.tag-ring[data-tag="SOL"].active,
.tag-filter.tag-ring[data-activity-tag="SOL"].active,
.tag-filter.tag-ring[data-recent-activity-tag="SOL"].active {
    background: rgba(153, 69, 255, 0.75);
    border-color: #9945FF;
    box-shadow: none;
}

.tag-filter.tag-ring[data-tag="SOL"]:hover,
.tag-filter.tag-ring[data-activity-tag="SOL"]:hover,
.tag-filter.tag-ring[data-recent-activity-tag="SOL"]:hover, [data-recent-activity-badge="BLUE"]:hover {
    box-shadow: 
        0 0 15px rgba(153, 69, 255, 0.6),
        inset 0 0 6px rgba(153, 69, 255, 0.3);
}

/* First Seen Column */
.first-seen {
    color: var(--text-secondary);
    font-size: 14px;
    white-space: nowrap;
}

/* Adjust table for more columns */
.data-table th,
.data-table td {
    padding: 6px 12px;
}

/* Fixed column widths for Top Projects table */
#topProjectsTable {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
    height: 550px;
}

/* Table container with fixed height to prevent layout shift on pagination */
#topProjectsTable tbody {
    min-height: 500px;
}

/* Placeholder rows - invisible but maintain table height */
#topProjectsTable tbody .placeholder-row td {
    padding: 0;
    border: none;
    height: 27px;
    line-height: 0;
    font-size: 0;
    opacity: 0;
    overflow: hidden;
}

#topProjectsTable th,
#topProjectsTable td {
    padding: 8px 12px;
    vertical-align: middle;
    line-height: 20px;
}

/* Percentage-based column widths for better spread */
#topProjectsTable th:nth-child(1),
#topProjectsTable td:nth-child(1) {
    width: 8%;
    text-align: center;
}

#topProjectsTable th:nth-child(2),
#topProjectsTable td:nth-child(2) {
    width: 32%;
}

#topProjectsTable th:nth-child(3),
#topProjectsTable td:nth-child(3) {
    width: 36%;
}

#topProjectsTable th:nth-child(4),
#topProjectsTable td:nth-child(4) {
    width: 8%;
    text-align: center;
}

#topProjectsTable th:nth-child(5),
#topProjectsTable td:nth-child(5) {
    width: 16%;
    text-align: center;
}

/* Remove borders from Top Projects table rows */
#topProjectsTable td {
    white-space: normal;
    overflow: visible;
    text-overflow: ellipsis;
    border-bottom: none;
}

#topProjectsTable tr {
    border-bottom: none;
}

/* Zebra striping for alternating rows */
#topProjectsTable tbody tr:nth-child(even) {
    background: rgba(134, 134, 134, 0.028);
}

#topProjectsTable tbody tr:nth-child(even):hover, [data-recent-activity-badge="BLUE"]:hover {
    background: var(--bg-hover);
}

/* Bio/description cell - single line like others */
#topProjectsTable td.bio-cell {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Pagination */
#pagination {
    padding: 16px;
    border-top: 1px solid var(--border);
    min-height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* API Manager Styles */
.api-manager-content {
    padding: 20px;
}

.info-box {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.info-box h3 {
    color: var(--accent-blue);
    margin-bottom: 12px;
    font-size: 18px;
}

.info-box ol {
    margin-left: 20px;
    margin-bottom: 12px;
}

.info-box li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.info-box code {
    background: var(--bg-section);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Space Mono', monospace;
    color: var(--accent-green-light);
}

.info-box .note {
    color: var(--accent-green);
    font-style: italic;
    margin-top: 12px;
}

.add-account-form {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.add-account-form h3 {
    margin-bottom: 16px;
    font-size: 18px;
}

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

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

.form-input {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 10px 14px;
    font-size: 15px;
    border-radius: 4px;
    font-family: 'Space Mono', monospace;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: transparent;
    color: #fff;
    font-weight: 600;
}

.btn-primary:hover, [data-recent-activity-badge="BLUE"]:hover {
    background: var(--accent-green-light);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

.btn-danger:hover, [data-recent-activity-badge="BLUE"]:hover {
    background: rgba(248, 81, 73, 0.25);
}

.btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

.status-message {
    font-size: 14px;
}

.status-message.success {
    color: var(--accent-green);
}

.status-message.error {
    color: var(--accent-red);
}

.status-message.info {
    color: var(--accent-blue);
}

.accounts-list h3 {
    margin-bottom: 16px;
    font-size: 18px;
}

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

.api-account-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 18px;
}

.api-account-card.active {
    border-color: var(--accent-green);
}

.api-account-card.pending {
    border-color: var(--text-secondary);
    opacity: 0.8;
}

.account-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.account-number {
    background: var(--bg-section);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.account-token {
    font-family: 'Space Mono', monospace;
    color: var(--text-primary);
    font-size: 15px;
}

.account-status {
    font-size: 14px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 15px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 42px;
}

.page-btn:hover:not(.active) {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(32, 178, 170, 0.25);
}

.page-btn.active {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-light));
    color: #fff;
    border-color: var(--accent-green);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(32, 178, 170, 0.4);
}

.page-ellipsis {
    color: var(--text-secondary);
    padding: 8px 4px;
    font-size: 15px;
    user-select: none;
}


/* Label hint for form labels */
.label-hint {
    color: var(--text-secondary);
    font-weight: normal;
    font-size: 13px;
}

/* Account details with note */
.account-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-note {
    color: var(--accent-blue);
    font-size: 13px;
    font-style: italic;
}

/* Activity Header - For Activity Data section */
.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.activity-header h2 {
    margin: 0;
    flex-shrink: 0;
}

.activity-header .controls {
    display: flex;

/* View Map Button */
.btn-view-map {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(32, 178, 170, 0.15), rgba(32, 178, 170, 0.05));
    border: 1px solid rgba(32, 178, 170, 0.5);
    border-radius: 6px;
    color: #20B2AA;
    font-size: 13px;
    font-family: 'Space Mono', monospace;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-view-map:hover {
    background: linear-gradient(135deg, rgba(32, 178, 170, 0.25), rgba(32, 178, 170, 0.1));
    border-color: #20B2AA;
    box-shadow: 0 0 20px rgba(32, 178, 170, 0.3);
    transform: translateY(-1px);
}

.btn-view-map:active {
    transform: translateY(0);
}
    gap: 16px;
    align-items: center;
}

.activity-header .controls:first-of-type {
    flex: 1;
    justify-content: center;
}

.activity-header .controls:last-of-type {
    flex-shrink: 0;
}

/* Activity Header - Inline Single Row Layout */
.activity-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    flex-wrap: nowrap;
}

.activity-header-inline h2 {
    font-size: var(--title-font-size);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--title-color);
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: var(--title-letter-spacing);
    text-shadow: var(--title-text-shadow);
    border-style: var(--title-border-style);
    border-color: var(--title-border-color);
    border-width: var(--title-border-width);
    border-radius: var(--title-border-radius);
    background: var(--title-bg-color);
    padding: 4px 8px;
    transition: all 0.3s ease;
}

.activity-header-inline h2:hover, [data-recent-activity-badge="BLUE"]:hover {
    color: var(--title-hover-color);
}

.activity-header-inline h2 span {
    color: var(--title-count-color);
    font-weight: 400;
    font-size: var(--title-count-font-size);
}

.activity-header-inline .inline-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.activity-header-inline .activity-tag-filters {
    display: flex;
    gap: 4px;
}

.activity-header-inline .activity-tag-filters .tag-filter {
    padding: 5px 10px;
    font-size: 12px;
}

.activity-header-inline .activity-tag-filters .tag-filter[data-activity-tag="INSIDER"],
.activity-header-inline .activity-tag-filters .tag-filter[data-activity-tag="DEPLOYERS"],
.activity-header-inline .activity-tag-filters .tag-filter[data-activity-tag="REGULAR"] {
    padding: 5px 8px;
    font-size: 14px;
}

@media (max-width: 1200px) {
    .activity-header-inline {
        flex-wrap: wrap;
    }
    
    .activity-header-inline .inline-filters {
        flex-wrap: wrap;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .activity-header-inline {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .activity-header-inline .inline-filters {
        width: 100%;
    }
}

/* Activity PFP Container with Follower Badge */
.activity-pfp-container {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}



.activity-project-pfp {
    width: 51px;
    height: 51px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    background: var(--bg-primary);
    display: block;
}


.activity-follower-badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}






/* Projects Found Count */
.projects-found {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    min-width: 32px;
}

/* Follower Count Filter */
.follower-filter {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 8px;
    border-left: none;
}




.follower-filter-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.follower-input {
    width: 140px;
    min-width: 140px;
    padding: 3px 8px;
    font-size: 12px;
    transition: all 0.3s ease;
    height: 22px;
    box-sizing: border-box;
}

.follower-input:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 12px rgba(32, 178, 170, 0.5);
}

.follower-input::-webkit-outer-spin-button,
.follower-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.follower-input[type=number] {
    -moz-appearance: textfield;
}

/* ============================================
   PROJECT DETAILS MODAL STYLES
   ============================================ */

/* Modal Overlay */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Modal Content - Glassmorphism Card */
.modal-content {
    background: linear-gradient(135deg, rgba(9, 11, 14, 0.95), rgba(15, 18, 23, 0.95));
    border: 1px solid #2c2c2c;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(32, 178, 170, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: slideUp 0.3s ease;
}

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

/* Modal Header */
.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: none;
    background: rgba(0, 0, 0, 0.033);
}

.modal-project-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.modal-pfp {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-green);
    box-shadow: 0 0 20px rgba(32, 178, 170, 0.3);
}

.modal-title-section {
    flex: 1;
}

.modal-title-section h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.modal-bio {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
    max-width: 450px;
}

.modal-followers {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(32, 178, 170, 0.2);
    color: var(--accent-green-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(32, 178, 170, 0.3);
}

/* Close Button */
.modal-close {
    background: rgba(248, 81, 73, 0.15);
    border: 1px solid rgba(248, 81, 73, 0.3);
    color: var(--accent-red);
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: 16px;
}

.modal-close:hover, [data-recent-activity-badge="BLUE"]:hover {
    background: rgba(248, 81, 73, 0.3);
    transform: rotate(90deg);
    box-shadow: 0 0 15px rgba(248, 81, 73, 0.4);
}

/* Modal Body */
.modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    max-height: calc(85vh - 140px);
}

.modal-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: none;
}

.modal-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-stat::before {
    content: attr(data-label);
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-stat {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-green-light);
}

.modal-body h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-body h4::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: transparent;
    border-radius: 5px;
}

/* Followers List */
.modal-followers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-follower-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modal-follower-item:hover, [data-recent-activity-badge="BLUE"]:hover {
    background: var(--bg-hover);
    border-color: rgba(32, 178, 170, 0.3);
    transform: translateX(4px);
}

.modal-follower-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-follower-pfp {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.modal-follower-pfp.tag-insider {
    border-color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.modal-follower-pfp.tag-deployers {
    border-color: #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.modal-follower-pfp.tag-regular {
    border-color: var(--text-secondary);
}

.modal-follower-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.modal-follower-name a {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
}

.modal-follower-name a:hover, [data-recent-activity-badge="BLUE"]:hover {
    color: var(--accent-blue);
}

.modal-follower-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.modal-follower-tag.tag-insider {
    background: rgba(0, 255, 0, 0.15);
    color: #00ff00;
}

.modal-follower-tag.tag-deployers {
    background: rgba(255, 0, 0, 0.15);
    color: #ff5555;
}

.modal-follower-tag.tag-regular {
    background: rgba(125, 133, 144, 0.15);
    color: var(--text-secondary);
}

.modal-follower-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.modal-follower-time .time {
    font-size: 13px;
    color: var(--text-secondary);
}

.modal-follower-time .followers-at-time {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Details Button in Table - Small circular icon button */
.btn-details-icon {
    width: 35px;
    height: 35px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0);
    background: rgba(88, 166, 255, 0);
    color: var(--accent-blue);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(88, 166, 255, 0);
}

.btn-details-icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

.btn-details-icon:hover, [data-recent-activity-badge="BLUE"]:hover {
    background: rgba(88, 166, 255, 0.35);
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.5);
    transform: scale(1.15);
}

/* Legacy button style - keep for compatibility */
.btn-details {
    background: rgba(88, 166, 255, 0.15);
    border: 1px solid rgba(88, 166, 255, 0.3);
    color: var(--accent-blue);
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.btn-details:hover, [data-recent-activity-badge="BLUE"]:hover {
    background: rgba(88, 166, 255, 0.25);
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.3);
    transform: scale(1.05);
}

/* Search Results Mode */
.search-results-mode .section-header h2 {
    color: var(--accent-blue);
}

.search-results-mode .section-header h2::after {
    content: ' (Search Results)';
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Loading in Modal */
.modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 16px;
}

.modal-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.modal-loading p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* No Results in Modal */
.modal-no-results {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.modal-no-results-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 20px;
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-pfp {
        width: 48px;
        height: 48px;
    }
    
    .modal-title-section h3 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-follower-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .modal-follower-time {
        align-items: flex-start;
    }
}

/* ============================================
   KOL MODAL STYLES - Click PFP to see follows
   ============================================ */

/* KOL Modal - Wider for follow list */
.kol-modal-content {
    max-width: 600px;
}

.kol-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(32, 178, 170, 0.05);
}

.kol-modal-pfp {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-green);
    box-shadow: 0 0 20px rgba(32, 178, 170, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.kol-modal-pfp:hover {
    transform: scale(1.05);
}

.kol-modal-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.kol-modal-name a {
    color: var(--accent-blue);
    text-decoration: none;
}

.kol-modal-name a:hover {
    text-decoration: underline;
}

.kol-modal-tag {
    display: inline-block;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
}

.kol-modal-tag.tag-insider {
    background: rgba(0, 255, 0, 0.15);
    color: #00ff00;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.kol-modal-tag.tag-deployers {
    background: rgba(255, 0, 0, 0.15);
    color: #ff5555;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.kol-modal-tag.tag-regular {
    background: rgba(125, 133, 144, 0.15);
    color: var(--text-secondary);
    border: 1px solid rgba(125, 133, 144, 0.3);
}

.kol-modal-tag.tag-eth {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.kol-modal-tag.tag-base {
    background: rgba(20, 141, 255, 0.15);
    color: #148dff;
    border: 1px solid rgba(20, 141, 255, 0.3);
}

.kol-modal-tag.tag-sol {
    background: rgba(153, 69, 255, 0.15);
    color: #9945FF;
    border: 1px solid rgba(153, 69, 255, 0.3);
}

.kol-modal-body {
    padding: 20px 24px;
    max-height: calc(85vh - 100px);
    overflow-y: auto;
}

.kol-modal-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.kol-stat-follows {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-green-light);
}

.kol-stat-time {
    font-size: 14px;
    color: var(--text-secondary);
}

.kol-modal-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* KOL Follows List */
.kol-follows-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kol-follow-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.kol-follow-item:hover {
    background: var(--bg-hover);
    border-color: rgba(32, 178, 170, 0.3);
    transform: translateX(4px);
}

.kol-follow-project {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.kol-follow-pfp {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.kol-follow-info {
    flex: 1;
    min-width: 0;
}

.kol-follow-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kol-follow-name:hover {
    color: var(--accent-blue);
}

.kol-follow-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.kol-follow-followers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.kol-follow-time {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: right;
}

/* Clickable PFP in monitored accounts */
.project-pfp.kol-clickable {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-pfp.kol-clickable:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(32, 178, 170, 0.5);
}

.project-pfp.kol-clickable:hover::after {
    content: '👆';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
}

/* KOL Modal Loading */
.kol-modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 16px;
}

.kol-modal-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.kol-modal-loading p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive KOL Modal */
@media (max-width: 768px) {
    .kol-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .kol-modal-header {
        padding: 16px;
    }
    
    .kol-modal-pfp {
        width: 48px;
        height: 48px;
    }
    
    .kol-modal-body {
        padding: 16px;
    }
    
    .kol-follow-item {
        flex-wrap: wrap;
    }
    
    .kol-follow-time {
        width: 100%;
        text-align: left;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid var(--border);
    }
}

/* Loading Spinners */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

.loading-spinner-small {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--border);
    border-top-color: var(--accent-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

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

.loading-row {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
    font-size: 14px;
}

.loading-row .loading-spinner {
    width: 24px;
    height: 24px;
    margin-bottom: 8px;
}

/* Hide elements for Discord users */
.hidden-for-discord {
    display: none !important;
}

/* ========== FREE USER RESTRICTIONS ========== */

/* Hide elements for FREE users */
.hidden-for-free {
    display: none !important;
}

/* Free user banner */
.free-user-banner {
    background: linear-gradient(135deg, rgba(32, 178, 170, 0.15) 0%, rgba(32, 178, 170, 0.05) 100%);
    border: 1px solid rgba(32, 178, 170, 0.4);
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.free-user-banner span {
    color: var(--text-secondary);
    font-size: 14px;
}

.free-user-banner strong {
    color: var(--accent-green);
}

.upgrade-btn {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-light));
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.upgrade-btn:hover, [data-recent-activity-badge="BLUE"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(32, 178, 170, 0.4);
    color: #fff;
}

/* Blurred sections for free users */
.blurred-section {
    position: relative;
}

.blurred-section::after {
    content: '🔒 Upgrade to Premium';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 20, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-green);
    z-index: 10;
    border-radius: 8px;
}

/* Locked sections */
.locked-section {
    min-height: 200px;
}

.locked-content {
    position: relative;
}

.locked-content::after {
    content: '🔒 Upgrade to Premium to view';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 14, 20, 0.9);
    padding: 20px 30px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-green);
    z-index: 10;
}

/* Locked input fields */
.locked-input {
    opacity: 0.5;
    cursor: not-allowed !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border-color: var(--border) !important;
}

.locked-input::placeholder {
    color: var(--text-secondary);
}

/* Locked filters */
.locked-filter {
    opacity: 0.4;
    cursor: not-allowed !important;
    pointer-events: none;
}

.locked-filter:hover, [data-recent-activity-badge="BLUE"]:hover {
    border-color: var(--border) !important;
    color: var(--text-secondary) !important;
}

/* ========== FREE USER TABLE LOCK ========== */

/* Pagination locked for free users - keep full list visible, just lock page buttons */
.pagination-locked .pagination {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.pagination-locked .pagination::before {
    content: '🔒 Upgrade to Premium for pagination';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 14, 20, 0.95);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--accent-green);
    z-index: 5;
    white-space: nowrap;
}

/* Discord Stats Section */
.stat-card {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 120px;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-green-light);
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.discord-user-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 18px;
}

.discord-user-card:hover, [data-recent-activity-badge="BLUE"]:hover {
    border-color: rgba(88, 166, 255, 0.3);
}

.discord-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.discord-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.discord-user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.discord-username {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.discord-role {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(32, 178, 170, 0.2);
    color: var(--accent-green-light);
    width: fit-content;
}

.discord-user-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.discord-login-count {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-blue);
}

.discord-last-active {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ============================================
   CO-OCCURRENCE CHART SIDEBAR STYLES
   ============================================ */

/* Container for chart with sidebar */
.chart-with-sidebar {
    display: flex;
    gap: 0;
    height: 500px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    overflow: hidden;
}

/* Chart container takes remaining space */
.chart-with-sidebar .chart-container {
    flex: 1;
    height: 100%;
    border-radius: 0;
}

/* Sidebar styling - always visible, never hides */
.chart-sidebar {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    background: var(--bg-section);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: relative;
    flex-shrink: 0;
    /* No transition to prevent movement */
}

/* Sidebar is always visible - .hidden class has no effect */
.chart-sidebar.hidden {
    display: flex !important;
}

/* Sidebar header */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(32, 178, 170, 0.05);
}

.sidebar-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--accent-green);
}

.sidebar-close {
    background: rgba(248, 81, 73, 0.15);
    border: 1px solid rgba(248, 81, 73, 0.3);
    color: var(--accent-red);
    font-size: 18px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.sidebar-close:hover, [data-recent-activity-badge="BLUE"]:hover {
    background: rgba(248, 81, 73, 0.3);
    transform: rotate(90deg);
}

/* Sidebar content */
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.sidebar-placeholder {
    color: var(--text-secondary);
    text-align: center;
    font-size: 13px;
    margin-top: 40px;
}

/* Node info in sidebar */
.sidebar-node-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-node-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.sidebar-node-pfp {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-green);
}

.sidebar-node-title {
    flex: 1;
}

.sidebar-node-title h5 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
}

.sidebar-node-title a {
    color: var(--accent-blue);
    text-decoration: none;
}

.sidebar-node-title a:hover, [data-recent-activity-badge="BLUE"]:hover {
    text-decoration: underline;
}

.sidebar-node-bio {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

.sidebar-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-primary);
    border-radius: 6px;
    font-size: 13px;
}

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

.sidebar-stat-value {
    color: var(--accent-green-light);
    font-weight: 600;
}

/* Shared KOLs in sidebar */
.sidebar-shared-kols {
    margin-top: 8px;
}

.sidebar-shared-kols h6 {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-kol-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sidebar-kol-tag {
    background: var(--bg-primary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

/* Sidebar Followers Section with Stacked PFPs */
.sidebar-followers-section {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.sidebar-followers-section h6 {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-follower-pfps-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 32px;
}

.sidebar-follower-mini-link {
    display: inline-flex;
    transition: transform 0.2s, z-index 0s;
    position: relative;
    z-index: 1;
}

.sidebar-follower-mini-link:hover, [data-recent-activity-badge="BLUE"]:hover {
    transform: scale(1.2);
    z-index: 10;
}

.sidebar-follower-mini-pfp {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-section);
    background: var(--bg-primary);
    display: block;
}

/* Responsive sidebar */
@media (max-width: 900px) {
    .chart-with-sidebar {
        flex-direction: column;
        height: auto;
    }
    
    .chart-sidebar {
        width: 100%;
        min-width: auto;
        max-height: 300px;
        border-left: none;
        border-top: 1px solid var(--border);
    }
    
    .chart-sidebar.hidden {
        max-height: 0;
    }
}

/* ============================================
   ACTIVITY HEATMAP STYLES
   ============================================ */

/* Heatmap Section */
#heatmapSection {
    margin-top: 16px;
}

.heatmap-total {
    color: var(--accent-green);
}

/* Heatmap/Chart Tabs */
.heatmap-tabs {
    display: flex;
    gap: 8px;
    margin-right: 12px;
}

.heatmap-tab {
    padding: 6px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}

.heatmap-tab:hover, [data-recent-activity-badge="BLUE"]:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.heatmap-tab.active {
    background: var(--accent-green);
    color: #ffffff;
    border-color: var(--accent-green);
}

/* Activity Chart Container */
.chart-container-line {
    padding: 16px 20px;
    height: 350px;
    background: var(--bg-secondary);
    border-radius: 8px;
    position: relative;
}

/* Logo watermark behind chart - separate from content */
.chart-container-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/static/logo.png');
    background-size: 20%;
    background-repeat: no-repeat;
    background-position: center top 30%;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

/* Heatmap Container - Fixed height to match chart */
.heatmap-container {
    height: 350px;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Activity View */
.activity-view {
    width: 100%;
}

/* Activity Data + Fear & Greed Layout */
.activity-feargreed-row {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 16px;
    margin-top: 16px;
    align-items: stretch;
}

.activity-feargreed-row .section {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.activity-feargreed-row .section-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Match header heights for both sections */
.activity-feargreed-row #heatmapSection .section-header,
.activity-feargreed-row #fearGreedSection .section-header {
    min-height: 52px;
    display: flex;
    align-items: center;
}

/* Ensure both containers fill the available space equally */
.activity-feargreed-row .heatmap-container,
.activity-feargreed-row .feargreed-container {
    flex: 1;
}

/* Ensure heatmap and chart views fill the container */
.activity-feargreed-row .activity-view {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.activity-feargreed-row #heatmapView,
.activity-feargreed-row #chartView {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.activity-feargreed-row .chart-container-line {
    flex: 1;
}

.activity-feargreed-row #activityChart {
    max-height: none;
}

/* Fear & Greed Gauge Styles */
.feargreed-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 350px;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 20px;
}

.feargreed-gauge {
    position: relative;
    width: 280px;
    height: 160px;
    margin-bottom: 20px;
}

.feargreed-gauge-svg {
    width: 100%;
    height: 100%;
}

.feargreed-needle {
    transform-origin: 140px 140px;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.feargreed-score {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-top: 10px;
}

.feargreed-label {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feargreed-zones {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 280px;
    margin-top: 16px;
    padding: 0 10px;
}

.feargreed-zone {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
}

/* Fear & Greed small chart */
.feargreed-chart-container {
    width: 100%;
    max-width: 280px;
    min-height: 70px;
    height: 70px;
    margin-top: 12px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.0);
    border-radius: 6px;
}

/* Smaller gauge for space */
.feargreed-container {
    height: 320px;
}

.feargreed-gauge {
    width: 220px;
    height: 120px;
    margin-bottom: 10px;
}

.feargreed-score {
    font-size: 36px;
    margin-top: 0;
}

.feargreed-label {
    font-size: 14px;
    margin-top: 4px;
}

.feargreed-zones {
    margin-top: 8px;
}

/* Zone colors */
.feargreed-extreme-fear { color: #ff4444; }
.feargreed-fear { color: #ff8844; }
.feargreed-neutral { color: #ffcc44; }
.feargreed-greed { color: #44cc68; }
.feargreed-extreme-greed { color: #44ffd7; }

.heatmap-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.heatmap-day-label {
    width: 50px;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: right;
    padding-right: 10px;
    flex-shrink: 0;
}

/* Hour Labels - generated by JavaScript */
.heatmap-hour-labels {
    display: flex;
    gap: 2px;
    padding-left: 15px;
    margin-bottom: 8px;
    margin-top: 8px;
}

.heatmap-hour-labels span {
    width: 40px;
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
    flex-shrink: 0;
}

.heatmap-cells {
    display: flex;
    gap: 2px;
}

.heatmap-cell {
    width: 40px;
    height: 28px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.heatmap-cell:hover, [data-recent-activity-badge="BLUE"]:hover {
    transform: scale(1.15);
    z-index: 10;
    border-color: var(--accent-blue);
}

.heatmap-cell.highlighted {
    border-color: var(--accent-blue);
    box-shadow: 0 0 8px rgba(88, 166, 255, 0.4);
}

/* Heatmap Cell Intensity Levels */
.heatmap-cell.level-0 {
    background: #1e232c;
}

.heatmap-cell.level-1 {
    background: #0e5c5c;
}

.heatmap-cell.level-2 {
    background: #20B2AA;
}

.heatmap-cell.level-3 {
    background: #48D1CC;
}

.heatmap-cell.level-4 {
    background: #7fffd4;
}

/* Day Labels */
.heatmap-day-labels {
    display: flex;
    padding-left: 70px;
    padding-right: 10px;
    margin-top: 6px;
}

.heatmap-day-labels span {
    width: 40px;
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
}

/* Legend */
.heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

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

.legend-cells {
    display: flex;
    gap: 4px;
}

.legend-cell {
    width: 24px;
    height: 20px;
    border-radius: 3px;
}

.legend-cell.level-0 {
    background: #1e232c;
}

.legend-cell.level-1 {
    background: #0e5c5c;
}

.legend-cell.level-2 {
    background: #20B2AA;
}

.legend-cell.level-3 {
    background: #48D1CC;
}

.legend-cell.level-4 {
    background: #7fffd4;
}

/* Heatmap Loading */
.heatmap-loading {
    padding: 30px;
    text-align: center;
    color: var(--text-secondary);
}

/* Heatmap Tooltip */
.heatmap-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid var(--accent-green);
    border-radius: 8px;
    padding: 12px 16px;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    font-size: 13px;
    min-width: 180px;
    font-family: 'Space Mono', monospace;
}

/* Follower PFPs Tooltip - For hover tooltips on follower PFPs */
.follower-pfps-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid var(--accent-green);
    border-radius: 8px;
    padding: 12px 16px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    font-size: 12px;
    font-family: 'Space Mono', monospace;
    color: var(--text-primary);
    max-width: 250px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.follower-pfps-tooltip.show {
    opacity: 1;
    visibility: visible;
}

.follower-pfps-tooltip a {
    color: var(--accent-green);
    text-decoration: none;
    font-family: 'Space Mono', monospace;
}

.follower-pfps-tooltip a:hover {
    text-decoration: underline;
}

/* Global tooltip styling for title attributes */
[title] {
    font-family: 'Space Mono', monospace;
}

/* Ensure all hover-based descriptions use Space Mono */
.tag-bar-segment[title],
.project-description[title],
.project-info[title] {
    font-family: 'Space Mono', monospace;
}

/* Trending badge tooltips */
.trending-badge[title] {
    font-family: 'Space Mono', monospace;
    cursor: help;
}

/* Account age and contract address tooltips */
.account-age-badge[title],
.contract-address[title] {
    font-family: 'Space Mono', monospace;
}

.heatmap-tooltip .tooltip-title {
    font-weight: 600;
    color: var(--accent-green);
    margin-bottom: 8px;
    font-size: 14px;
}

.heatmap-tooltip .tooltip-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 4px;
}

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

.heatmap-tooltip .tooltip-value {
    color: var(--accent-green-light);
    font-weight: 600;
}

.heatmap-tooltip .tooltip-tags {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
}

.heatmap-tooltip .tag-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.heatmap-tooltip .tag-badge.insider {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
}

.heatmap-tooltip .tag-badge.deployers {
    background: rgba(255, 0, 0, 0.2);
    color: #ff5555;
}

.heatmap-tooltip .tag-badge.regular {
    background: rgba(125, 133, 144, 0.2);
    color: var(--text-secondary);
}

.heatmap-tooltip .tag-badge.eth {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.heatmap-tooltip .tag-badge.base {
    background: rgba(20, 141, 255, 0.2);
    color: #148dff;
}

.heatmap-tooltip .tag-badge.sol {
    background: rgba(153, 69, 255, 0.2);
    color: #9945FF;
}

/* Responsive Heatmap */
@media (max-width: 768px) {
    .heatmap-container {
        padding: 12px;
    }
    
    .heatmap-cell {
        width: 28px;
        height: 22px;
    }
    
    .heatmap-hour-labels span,
    .heatmap-day-labels span {
        width: 28px;
        font-size: 10px;
    }
    
    .heatmap-day-label {
        width: 40px;
        font-size: 10px;
    }
    
    .heatmap-hour-labels {
        padding-left: 50px;
    }
    
    .heatmap-day-labels {
        padding-left: 50px;
    }
}

.badge-filters.recent-activity-badge-filters {
    padding-left: 8px;
    border-left: 1px solid var(--border);
}

/* Activity time range filter - hide when heatmap is selected */
.activity-time-filters.hidden {
    display: none !important;
}

/* Heatmap Level 5 - Brightest for highest activity */
.heatmap-cell.level-5 {
    background: #aaffee;
}

.legend-cell.level-5 {
    background: #aaffee;
}

/* Account Age Badge - displayed under description in project-info */
/* Username changed icon - shown when project has changed username */
.username-changed-icon {
    display: inline;
    font-size: 12px;
    margin-left: 6px;
    vertical-align: middle;
    cursor: help;
    opacity: 1;
    transition: all 0.2s ease;
}

.username-changed-icon:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.account-age-badge {
    display: inline-block;
    color: #b9b9b9;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    margin-top: -5px;
}

/* Badges row - contains account age and contract address on same line */
.badges-row {
    display: inline;
    white-space: nowrap;
}

/* Contract Address Wrapper - holds DexScreener link + copy button */
.contract-address-wrapper {
    display: inline;
    margin-left: 8px;
    white-space: nowrap;
}

/* Contract Address Link - opens DexScreener in new tab */
.contract-address-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-green);
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    white-space: nowrap;
}

.contract-address-link:hover {
    text-decoration: underline;
    color: var(--accent-green-light);
}

/* Contract Address Copy Button - copies address to clipboard */
.contract-copy-btn {
    display: inline;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 10px;
    cursor: pointer;
    vertical-align: middle;
    padding: 0 2px;
    margin: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.contract-copy-btn:hover {
    color: #fff;
}

.fresh-badge {
    display: inline-block;
    font-size: 12px;
    color: var(--accent-green);
    margin-right: 6px;
    vertical-align: middle;
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   These apply only on smaller screens - desktop remains unchanged
   ============================================ */

/* Tablet landscape and below (1024px) */
@media (max-width: 1024px) {
    .two-column {
        grid-template-columns: 1fr;
    }
    
    .two-column .section {
        min-height: auto;
    }
    
    .two-column .section-content {
        min-height: 400px;
        height: auto;
    }
    
    .header-stats {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .stat {
        padding: 5px 10px;
        font-size: 13px;
    }
    
    .filters-row {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .filters-row .compact-search {
        min-width: 150px;
    }
    
    .filters-row .follower-input {
        width: 120px;
        min-width: 120px;
    }
}

/* Large tablet / small desktop (1100px) - start shrinking filters */
@media (max-width: 1100px) {
    .filters-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .filters-row .compact-search {
        flex: 1;
        min-width: 120px;
        max-width: 200px;
    }
    
    .filters-row .follower-input {
        width: 100px;
        min-width: 100px;
    }
    
    .filters-row .time-filters .tab {
        padding: 4px 8px;
        font-size: 11px;
        min-width: 30px;
    }
    
    .filters-row .tag-filters {
        gap: 6px;
    }
    
    .filters-row .tag-filters .tag-filter {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .filters-row .tag-filters .tag-filter.tag-ring {
        width: 16px !important;
        height: 16px !important;
    }
    
    .filters-row .badge-filters {
        gap: 4px;
    }
}

/* Medium tablet (900px) - filters start wrapping */
@media (max-width: 900px) {
    .filters-row {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
    }
    
    .filters-row > * {
        flex-shrink: 0;
    }
    
    .filters-row .compact-search {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: none;
        order: -1;
    }
    
    .filters-row .follower-filter {
        flex: 0 1 auto;
    }
    
    .filters-row .follower-input {
        width: 100px;
        min-width: 80px;
    }
    
    .filters-row .badge-filters {
        flex: 0 1 auto;
    }
    
    .filters-row .tag-filters {
        flex: 0 1 auto;
    }
    
    .filters-row .time-filters {
        flex: 0 1 auto;
    }
}

/* Large phones and small tablets (768px) */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 12px 16px;
        gap: 12px;
    }
    
    .header-left {
        width: 100%;
        justify-content: flex-start;
    }
    
    .logo-container {
        width: 50px;
        height: 50px;
    }
    
    .logo-img {
        width: 100%;
        height: auto;
    }
    
    .title .title-main {
        font-size: 22px;
    }
    
    .title .title-sub {
        font-size: 12px;
    }
    
    .header-stats {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .header-stats .stat {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .header-right {
        width: 100%;
        justify-content: flex-end;
    }
    
    .main {
        padding: 10px;
    }
    
    .section {
        margin-bottom: 10px;
    }
    
    .section-header {
        padding: 10px 14px;
    }
    
    .projects-header-stacked {
        padding: 10px 14px;
    }
    
    .projects-header-stacked h2 {
        font-size: 20px;
    }
    
    /* Filters row - compact wrap on mobile */
    .filters-row {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        width: 100%;
        padding: 8px 0;
    }
    
    .filters-row > * {
        flex-shrink: 0 !important;
    }
    
    /* Search input - compact */
    .filters-row .compact-search {
        flex: 1 1 100% !important;
        min-width: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 8px 12px !important;
        font-size: 14px !important;
    }
    
    .filters-row .follower-filter {
        flex: 0 1 auto !important;
        min-width: auto !important;
    }
    
    .filters-row .follower-input {
        width: 100px !important;
        min-width: 80px !important;
        padding: 6px 8px !important;
        font-size: 12px !important;
    }
    
    .filters-row .time-filters {
        display: flex;
        gap: 2px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filters-row .time-filters .tab {
        padding: 6px 8px !important;
        font-size: 11px !important;
        min-width: 32px !important;
    }
    
    .filters-row .tag-filters {
        display: flex;
        gap: 4px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .filters-row .tag-filters .tag-filter {
        padding: 4px 8px !important;
        font-size: 11px !important;
        min-width: auto !important;
    }
    
    .filters-row .tag-filters .tag-filter.tag-ring {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        min-height: 18px !important;
        border-radius: 50% !important;
    }
    
    .filters-row .badge-filters {
        display: flex;
        gap: 4px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    /* Tab buttons - larger for touch */
    .tab {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 44px;
    }
    
    /* Tag filters - larger touch targets */
    .tag-filter {
        padding: 8px 12px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .tag-filter.tag-ring {
        width: 28px !important;
        height: 28px !important;
    }
    
    /* Badge filters - larger */
    .badge-filter {
        padding: 8px 10px;
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Table styles */
    .data-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 10px;
        font-size: 14px;
        white-space: nowrap;
    }
    
    /* Activity list mobile */
    .activity-list {
        height: auto;
        max-height: none;
        min-height: 300px;
    }
    
    .activity-text {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .activity-project-wrapper,
    .activity-follower-wrapper {
        width: 100%;
    }
    
    /* Activity header row */
    .activity-header-row {
        display: none;
    }
    
    /* Charts section */
    .chart-container {
        height: 300px;
    }
    
    .chart-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .chart-filters-inline {
        flex-wrap: wrap;
    }
    
    /* Activity Fear/Greed Row - stack */
    .activity-feargreed-row {
        grid-template-columns: 1fr;
    }
    
    .heatmap-container,
    .feargreed-container {
        height: auto;
        min-height: 280px;
    }
    
    .feargreed-gauge {
        width: 220px;
        height: 130px;
    }
    
    .feargreed-gauge-svg {
        width: 100%;
        height: 100%;
    }
    
    .feargreed-score {
        font-size: 36px;
    }
    
    .feargreed-label {
        font-size: 16px;
    }
    
    /* Co-occurrence chart */
    .chart-with-sidebar {
        flex-direction: column;
        height: auto;
    }
    
    .chart-sidebar {
        width: 100%;
        min-width: auto;
        max-width: none;
        border-left: none;
        border-top: 1px solid var(--border);
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .modal-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .modal-close {
        position: absolute;
        top: 10px;
        right: 10px;
    }
    
    .modal-project-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .modal-pfp {
        width: 48px;
        height: 48px;
    }
    
    /* Search input */
    .search {
        width: 100%;
        min-width: 100%;
    }
    
    /* Pagination */
    .pagination {
        gap: 6px;
    }
    
    .page-btn {
        padding: 8px 12px;
        min-width: 36px;
        font-size: 14px;
    }
}

/* Small phones (600px) */
@media (max-width: 600px) {
    .header {
        padding: 10px 12px;
    }
    
    .logo-container {
        width: 40px;
        height: 40px;
    }
    
    .title .title-main {
        font-size: 18px;
    }
    
    .title .title-sub {
        font-size: 11px;
    }
    
    .header-stats .stat {
        font-size: 11px;
        padding: 4px 6px;
    }
    
    .service-status-compact {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .updated {
        font-size: 12px;
    }
    
    .logout {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
    }
    
    .social-link svg {
        width: 16px;
        height: 16px;
    }
    
    .section-header h2 {
        font-size: 18px;
    }
    
    /* Smaller project info */
    .project-info {
        font-size: 14px;
    }
    
    .project-pfp {
        width: 40px;
        height: 40px;
    }
    
    .project-description {
        font-size: 11px;
        max-width: 120px;
    }
    
    /* Activity items */
    .activity-item {
        padding: 6px 10px;
    }
    
    .activity-pfp {
        width: 32px;
        height: 32px;
    }
    
    .activity-text {
        font-size: 14px;
    }
    
    .inline-pfp {
        width: 32px;
        height: 32px;
    }
    
    /* Follower PFPs row */
    .follower-pfps-row {
        height: 32px;
    }
    
    .follower-mini-link {
        height: 32px;
        width: 32px;
    }
    
    .follower-mini-pfp {
        width: 32px;
        height: 32px;
    }
    
    /* Heatmap - smaller cells */
    .heatmap-cell {
        width: 32px;
        height: 24px;
    }
    
    .heatmap-hour-labels span,
    .heatmap-day-labels span {
        width: 32px;
        font-size: 10px;
    }
    
    .heatmap-day-label {
        width: 35px;
        font-size: 10px;
    }
    
    .heatmap-hour-labels,
    .heatmap-day-labels {
        padding-left: 45px;
    }
    
    /* Charts */
    .chart-container {
        height: 250px;
    }
    
    .chart-stats {
        flex-direction: column;
        gap: 8px;
    }
    
    /* Monitored accounts table */
    #accountsTable th,
    #accountsTable td {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    /* API Manager */
    .api-account-card {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .account-info {
        flex-wrap: wrap;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .btn-small {
        padding: 8px 12px;
    }
}

/* Extra small phones (480px) */
@media (max-width: 480px) {
    .header {
        padding: 8px 10px;
    }
    
    .title {
        display: none;
    }
    
    .logo-container {
        width: 36px;
        height: 36px;
    }
    
    .header-stats {
        gap: 6px;
    }
    
    .header-stats .stat {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .header-stats .stat::before {
        display: none;
    }
    
    .header-right {
        gap: 8px;
    }
    
    .updated {
        display: none;
    }
    
    .logout {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .section-header {
        padding: 8px 10px;
    }
    
    .section-header h2 {
        font-size: 16px;
    }
    
    /* Even smaller project info */
    .project-cell {
        gap: 8px;
    }
    
    .project-pfp {
        width: 32px;
        height: 32px;
    }
    
    .project-info {
        font-size: 12px;
    }
    
    .project-description {
        display: none;
    }
    
    /* Compact table */
    .data-table th,
    .data-table td {
        padding: 5px 6px;
        font-size: 11px;
    }
    
    /* Time tabs - more compact */
    .time-filters .tab {
        padding: 6px 8px;
        font-size: 12px;
        min-width: 32px;
    }
    
    /* Tag filters */
    .tag-filter {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .tag-filter.tag-ring {
        width: 24px !important;
        height: 24px !important;
    }
    
    /* Activity */
    .activity-pfp {
        width: 28px;
        height: 28px;
    }
    
    .activity-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .inline-pfp {
        width: 28px;
        height: 28px;
    }
    
    /* Heatmap very compact */
    .heatmap-cell {
        width: 24px;
        height: 20px;
    }
    
    .heatmap-hour-labels span,
    .heatmap-day-labels span {
        width: 24px;
        font-size: 8px;
    }
    
    .heatmap-day-label {
        width: 28px;
        font-size: 8px;
    }
    
    .heatmap-hour-labels,
    .heatmap-day-labels {
        padding-left: 35px;
    }
    
    /* Fear Greed */
    .feargreed-gauge {
        width: 180px;
        height: 100px;
    }
    
    .feargreed-score {
        font-size: 28px;
    }
    
    .feargreed-label {
        font-size: 14px;
    }
    
    .feargreed-zones {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .feargreed-zone {
        font-size: 8px;
    }
    
    /* Pagination - dots */
    .page-ellipsis {
        display: none;
    }
    
    /* Charts */
    .chart-container {
        height: 200px;
    }
    
    .chart-wrapper {
        padding: 12px;
    }
    
    .chart-filters-inline select {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* ============================================
   NARRATIVES PAGE STYLES
   ============================================ */

/* Narratives Projects Table - Bio column shows full text */
.narratives-projects-table td:nth-child(4) {
    white-space: normal !important;
    max-width: none !important;
    overflow: visible !important;
    text-overflow: unset !important;
    word-break: break-word;
}

.narratives-projects-table td:nth-child(4).project-description {
    white-space: normal !important;
    max-width: none !important;
    overflow: visible !important;
    text-overflow: unset !important;
}

/* Project bio row - displayed under username in project-cell */
.project-bio-row {
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.3;
    margin-top: 2px;
    white-space: normal;
    word-break: break-word;
}

/* Hide the separate Bio column since bio is now under username */
.narratives-projects-table th:nth-child(4),
.narratives-projects-table td:nth-child(4) {
    display: none;
}

/* Narratives Sections */
.narratives-section {
    padding: 16px 0;
}

.narratives-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 18px;
}

.narratives-section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.narratives-section-header .subtitle {
    font-size: 12px;
    color: var(--text-secondary);
}

.narratives-section-header .project-count {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Categories Scroll */
.narratives-categories-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 18px 16px;
    scrollbar-width: thin;
}

.narratives-categories-scroll::-webkit-scrollbar {
    height: 6px;
}

.narratives-categories-scroll::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

/* Category Cards */
.narrative-category-card {
    min-width: 160px;
    max-width: 180px;
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.narrative-category-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-green);
    box-shadow: 0 4px 12px rgba(32, 178, 170, 0.2);
}

.narrative-category-card .category-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.narrative-category-card .category-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.narrative-category-card .category-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.narrative-category-card .category-count {
    font-size: 12px;
    color: var(--text-secondary);
}

.narrative-category-card .category-velocity {
    font-size: 12px;
    font-weight: 500;
}

.narrative-category-card .category-velocity.positive {
    color: var(--accent-green);
}

.narrative-category-card .category-velocity.neutral {
    color: var(--text-secondary);
}

/* Emerging Narratives Grid */
.narratives-emerging-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    padding: 0 18px;
}

.narrative-emerging-card {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.narrative-emerging-card.uncategorized {
    border-color: rgba(248, 81, 73, 0.3);
    background: rgba(248, 81, 73, 0.05);
}

.narrative-emerging-card .emerging-keyword {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.narrative-emerging-card .keyword-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.narrative-emerging-card .keyword-change {
    font-size: 13px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.narrative-emerging-card .keyword-change.hot {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.narrative-emerging-card .keyword-change.warming {
    background: rgba(255, 230, 109, 0.2);
    color: #ffe66d;
}

.narrative-emerging-card .keyword-change.cool {
    background: rgba(125, 133, 144, 0.2);
    color: var(--text-secondary);
}

.narrative-emerging-card .emerging-stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

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

.narrative-emerging-card .emerging-header .label {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-red);
}

.narrative-emerging-card .emerging-header .count {
    font-size: 12px;
    color: var(--text-secondary);
}

.narrative-emerging-card .uncategorized-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.narrative-emerging-card .uncategorized-project {
    font-size: 12px;
    color: var(--accent-blue);
    text-decoration: none;
    padding: 2px 6px;
    background: rgba(88, 166, 255, 0.1);
    border-radius: 4px;
}

.narrative-emerging-card .uncategorized-project:hover {
    text-decoration: underline;
}

/* Category Filters */
.narratives-filters {
    display: flex;
    gap: 8px;
    padding: 0 18px 16px;
    flex-wrap: wrap;
}

.narratives-filters .category-filter-btn {
    padding: 6px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.narratives-filters .category-filter-btn:hover {
    border-color: var(--accent-green);
    color: var(--text-primary);
}

.narratives-filters .category-filter-btn.active {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: #fff;
}

/* Projects Grid */
.narratives-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 0 18px 18px;
}

.narrative-project-card {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    gap: 12px;
    transition: all 0.2s ease;
}

.narrative-project-card:hover {
    border-color: var(--accent-green);
    box-shadow: 0 4px 12px rgba(32, 178, 170, 0.15);
}

.narrative-project-card .project-pfp-wrapper {
    flex-shrink: 0;
}

.narrative-project-card .project-pfp {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.narrative-project-card .project-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.narrative-project-card .project-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.narrative-project-card .project-name:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

.narrative-project-card .project-category {
    font-size: 12px;
    font-weight: 500;
}

.narrative-project-card .project-bio {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.narrative-project-card .project-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--text-secondary);
}

.narrative-project-card .project-meta .followers,
.narrative-project-card .project-meta .recent-follows {
    display: flex;
    align-items: center;
    gap: 4px;
}

.narrative-project-card .project-subcategories {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.narrative-project-card .subcat-tag {
    font-size: 10px;
    padding: 2px 6px;
    background: rgba(88, 166, 255, 0.1);
    color: var(--accent-blue);
    border-radius: 4px;
}

.narrative-project-card .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.narrative-project-card .narrative-tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
}

.narrative-project-card .narrative-tag.emerging {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.narrative-project-card .narrative-tag.viral {
    background: rgba(255, 230, 109, 0.2);
    color: #ffe66d;
}

.narrative-project-card .narrative-tag.institutional {
    background: rgba(88, 166, 255, 0.2);
    color: var(--accent-blue);
}

.narrative-project-card .narrative-tag.early-stage {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.narrative-project-card .narrative-tag.trending {
    background: rgba(153, 69, 255, 0.2);
    color: #9945FF;
}

/* Empty State */
.narratives-section .empty-state {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .narratives-categories-scroll {
        padding: 8px 14px 16px;
    }
    
    .narrative-category-card {
        min-width: 140px;
    }
    
    .narratives-emerging-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        padding: 0 14px;
    }
    
    .narratives-projects-grid {
        grid-template-columns: 1fr;
        padding: 0 14px 14px;
    }
    
    .narratives-filters {
        padding: 0 14px 14px;
        overflow-x: auto;
    }
    
    .narratives-section-header {
        padding: 0 14px;
    }
}

/* ============================================
   NARRATIVES CHARTS ROW STYLES
   ============================================ */

.narratives-charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 0 0 20px 0;
}

.narratives-charts-row .chart-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    min-height: 280px;
}

.narratives-charts-row .chart-container h3 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.narratives-charts-row .chart-wrapper {
    position: relative;
    height: 220px;
}

.narratives-charts-row .chart-wrapper canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* Donut chart container - slightly taller */
.donut-container {
    min-height: 300px;
}

.donut-container .chart-wrapper {
    height: 240px;
}

/* Bubble chart container */
.bubble-container .chart-wrapper {
    height: 240px;
}

/* Three column layout for charts */
.narratives-charts-row.three-col {
    grid-template-columns: 1fr 1fr 1fr;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NARRATIVES TWO-COLUMN LAYOUT (Charts left + List Table right)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Two column container for narratives page */
.narratives-two-column {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Left column - stacked charts */
.narratives-charts-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.narratives-charts-column .chart-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    min-height: 220px;
}

.narratives-charts-column .chart-container h3 {
    margin: 0 0 10px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.narratives-charts-column .chart-wrapper {
    position: relative;
    height: 180px;
}

.narratives-charts-column .chart-wrapper canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* Right column - narratives list table */
.narratives-list-column {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    max-height: 50%;
    flex: 1;
}

.narratives-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.narratives-list-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.narratives-list-filters {
    display: flex;
    gap: 8px;
    align-items: center;
}

.narrative-search {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    width: 120px;
    transition: all 0.3s ease;
}

.narrative-search:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 8px rgba(32, 178, 170, 0.3);
}

.narrative-search::placeholder {
    color: var(--text-secondary);
}

.narratives-list-filters .filter {
    padding: 1px 8px;
    font-size: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 4px;
    cursor: pointer;
}

.narratives-list-filters .filter:focus {
    outline: none;
    border-color: var(--accent-green);
}

/* Table container with scroll */
.narratives-table-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Narratives list table - match data-table exactly */
.narratives-list-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 15px;
    min-height: auto;
    height: auto;
}

.narratives-list-table th {
    text-align: left;
    padding: 8px 14px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--table-border-color);
    background: var(--bg-primary);
    position: sticky;
    top: 0;
    cursor: pointer;
    white-space: nowrap;
}

.narratives-list-table th:hover {
    color: var(--accent-green);
}

.narratives-list-table th::after {
    content: ' ↕';
    opacity: 0.3;
    font-size: 10px;
}

.narratives-list-table td {
    padding: 8px 14px;
    border-bottom: var(--table-row-border-bottom) solid var(--table-border-color);
    border-style: var(--table-border-style);
    color: var(--text-primary);
    transition: all 0.2s ease;
    font-size: 13px;
}

.narratives-list-table tbody tr:hover {
    background: var(--bg-hover);
}

.narratives-list-table td:first-child {
    font-weight: 400;
    color: var(--text-primary);
}

/* State badge in table */
.narrative-state-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Empty state in table */
.narratives-list-table .empty {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1200px) {
    .narratives-two-column {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .narratives-two-column {
        grid-template-columns: 1fr;
    }
    
    .narratives-list-column {
        min-height: 400px;
    }
}

@media (max-width: 600px) {
    .narratives-list-filters {
        flex-wrap: wrap;
        width: 100%;
    }
    
    .narrative-search {
        width: 100%;
        flex: 1;
    }
}

/* Timeline container - full width under other charts */
.timeline-container {
    grid-column: 1 / -1;
    min-height: 300px;
}

.timeline-container .chart-wrapper {
    height: 280px;
}

/* Responsive for three column */
@media (max-width: 1200px) {
    .narratives-charts-row.three-col {
        grid-template-columns: 1fr 1fr;
    }
    
    .timeline-container {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .narratives-charts-row.three-col {
        grid-template-columns: 1fr;
    }
    
    .timeline-container .chart-wrapper {
        height: 220px;
    }
}

/* Touch-friendly improvements for all mobile */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    button,
    .tab,
    .tag-filter,
    .badge-filter,
    .page-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects that don't work on touch */
    .tab:hover,
    .tag-filter:hover,
    .badge-filter:hover,
    .page-btn:hover {
        transform: none;
    }
    
    /* Active states for touch */
    .tab:active,
    .tag-filter:active,
    .badge-filter:active,
    .page-btn:active {
        transform: scale(0.95);
    }
    
    /* Disable hover-only interactions */
    .project-pfp-link:hover,
    .follower-mini-link:hover,
    .sidebar-follower-mini-link:hover {
        transform: none;
    }
}

/* ============================================
   WORK IN PROGRESS MODAL STYLES
   ============================================ */

.wip-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.wip-modal {
    background: linear-gradient(135deg, #1a1a1a 0%, #0e0e0e 100%);
    border: 2px solid var(--accent-green);
    border-radius: 16px;
    padding: 32px 40px;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 0 40px rgba(32, 178, 170, 0.3), 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

.wip-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.wip-icon {
    font-size: 36px;
}

.wip-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-green);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wip-content {
    margin-bottom: 24px;
}

.wip-title {
    font-size: 18px;
    font-weight: 700;
    color: #ff6b6b;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.wip-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.wip-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: left;
}

.wip-features li {
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.wip-features li:last-child {
    border-bottom: none;
}

.wip-note {
    font-size: 12px;
    color: var(--accent-green);
    font-style: italic;
    margin: 0;
}

.wip-close-btn {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-light));
    border: none;
    color: #fff;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wip-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(32, 178, 170, 0.4);
}



/* ═══════════════════════════════════════════════════════════════════════════
   EMERGING NARRATIVES MAP  — paste into style.css and make changes if neeeded    ═══════════════════════════════════════════════════════════════════════════ */

/* Full-width panel — matches existing .chart-container style */
.keyword-graph-container {
width: 100%;
    height: 800px;
    margin-top: 16px;
    padding: 20px;
    background: var(--card-bg, #111);
    border: 1px solid var(--border-color, rgba(71, 71, 116, 0.35));
    border-radius: 8px;
    box-sizing: border-box;
}

/* Header row: title left, legend right */
.keyword-graph-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.keyword-graph-header h3 {
    margin: 0;
    font-size: 14px;
    font-family: 'Space Mono', monospace;
    color: #e6f3ec;
    letter-spacing: 0.04em;
}

/* Legend */
.keyword-graph-legend {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: #7d8590;
    flex-wrap: wrap;
}

.legend-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 3px;
    vertical-align: middle;
}

.legend-dot.new        { background: #00e5ff; box-shadow: 0 0 4px #00e5ff; }
.legend-dot.rising     { background: #22c55e; }
.legend-dot.stagnating { background: #f97316; }
.legend-dot.dropping   { background: #ef4444; }
.legend-dot.dead      { background: #3f1f1f; opacity: 0.7; }

.legend-hint {
    color: #4a4a6a;
    font-size: 10px;
    margin-left: 4px;
}

/* SVG canvas wrapper */
#keywordGraphContainer {
    width: 100%;
    height: 800px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

#keywordGraphContainer svg {
    width: 100%;
    height: 100%;
}

/* Empty state */
.graph-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #7d8590;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
}

/* ── Tooltip ──────────────────────────────────────────────────────────────── */
#kwGraphTooltip {
    display: none;
    position: absolute;
    z-index: 9999;
    pointer-events: none;

    background: rgba(0, 0, 0, 0.95);
    border: 1px solid #20B2AA;
    border-radius: 6px;
    padding: 10px 13px;
    min-width: 160px;
    max-width: 240px;

    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: #e6f3ec;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.kw-tt-keyword {
    font-size: 13px;
    font-weight: 700;
    color: #20B2AA;
    margin-bottom: 6px;
    word-break: break-word;
}

.kw-tt-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 3px;
    color: #a0aec0;
}

.kw-tt-row span:last-child {
    color: #e6f3ec;
    font-weight: 600;
}

.kw-tt-status {
    margin-top: 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.kw-tt-neighbors {
    margin-top: 7px;
    padding-top: 7px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: #7d8590;
    font-size: 10px;
    line-height: 1.5;
    word-break: break-word;
}

/* ── D3 node cursor ───────────────────────────────────────────────────────── */
.kw-node {
    cursor: pointer;
}

.kw-node circle {
    transition: opacity 0.2s ease;
}

/* ── Subtle pulse animation for NEW state bubbles ─────────────────────────────── */
@keyframes keywordPulse {
    0%   { 
        stroke-width: 2;   
        stroke-opacity: 1; 
        filter: drop-shadow(0 0 0px #00e5ff);
    }
    50%  { 
        stroke-width: 3;   
        stroke-opacity: 0.7; 
        filter: drop-shadow(0 0 6px #00e5ff);
    }
    100% { 
        stroke-width: 2;   
        stroke-opacity: 1; 
        filter: drop-shadow(0 0 0px #00e5ff);
    }
}

.kw-circle-new {
    animation: keywordPulse 2s ease-in-out infinite;
}

/* ── Alpha Signal (Gold Halo) ─────────────────────────────────────────── */
/* NEW bubbles with ≥5 follows across ≥2 projects get a gold pulsing halo */

@keyframes alphaPulse {
    0%   { 
        stroke-opacity: 0.5; 
        filter: drop-shadow(0 0 2px rgba(251, 191, 36, 0.3));
    }
    50%  { 
        stroke-opacity: 0.9; 
        filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.8));
    }
    100% { 
        stroke-opacity: 0.5; 
        filter: drop-shadow(0 0 2px rgba(251, 191, 36, 0.3));
    }
}

.kw-halo {
    animation: alphaPulse 2s ease-in-out infinite;
}

/* Alpha signal badge - follow count above bubble */
.kw-alpha-badge {
    font-family: 'Space Mono', monospace;
    font-weight: bold;
    fill: #fbbf24;
    pointer-events: none;
    text-shadow: 0 0 6px rgba(251, 191, 36, 0.8);
}

/* Alpha signal container */
.kw-alpha-signal {
    pointer-events: none;
}


/* ── Stream Graph Styles ─────────────────────────────────────────────────── */

.stream-tooltip {
    position: fixed;
    display: none;
    background: rgba(14, 14, 14, 0.95);
    border: 1px solid #20B2AA;
    border-radius: 6px;
    padding: 12px;
    font-family: "Space Mono", monospace;
    font-size: 11px;
    color: #e6f3ec;
    z-index: 1000;
    pointer-events: none;
    max-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.stream-tooltip-time {
    color: #20B2AA;
    font-weight: bold;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(71, 71, 116, 0.4);
}

.stream-tooltip-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0;
}

.stream-tooltip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.stream-tooltip-label {
    flex: 1;
    color: #7d8590;
}

.stream-tooltip-value {
    font-weight: bold;
    color: #e6f3ec;
}

.stream-tooltip-total {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(71, 71, 116, 0.4);
    font-weight: bold;
    color: #20B2AA;
}

.stream-hover-line {
    pointer-events: none;
}

.stream-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #7d8590;
    font-family: "Space Mono", monospace;
    font-size: 14px;
}

/* Stream graph SVG styles */
.timeline-container svg {
    display: block;
}

.timeline-container .stream {
    transition: opacity 0.2s ease;
}

.timeline-container .stream:hover {
    opacity: 1 !important;
}



/* Stream chart container - for D3 SVG rendering */
.stream-chart-container {
    width: 100%;
    height: 260px;
}

.stream-chart-container svg {
    display: block;
    width: 100%;
    height: 100%;
}



/* ========== HOT TRENDING BAR ========== */
.hot-trending-bar {
    background: linear-gradient(135deg, rgba(255, 100, 50, 0.15) 0%, rgba(255, 50, 50, 0.1) 100%);
    border: 1px solid rgba(255, 100, 50, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.hot-trending-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.hot-trending-title {
    font-size: 13px;
    font-weight: 700;
    color: #ff6b35;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hot-trending-count {
    font-size: 12px;
    color: var(--text-secondary);
}

.hot-trending-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 107, 53, 0.5) transparent;
}

.hot-trending-scroll::-webkit-scrollbar {
    height: 6px;
}

.hot-trending-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.hot-trending-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.5);
    border-radius: 3px;
}

.hot-trending-empty {
    color: var(--text-secondary);
    font-size: 12px;
    font-style: italic;
    padding: 8px 0;
}

.hot-trending-card {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
}

.hot-trending-card:hover {
    background: rgba(255, 107, 53, 0.15);
    border-color: rgba(255, 107, 53, 0.5);
    transform: translateY(-2px);
}

.hot-trending-card-pfp {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-green);
}

.hot-trending-card-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hot-trending-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.hot-trending-card-follows {
    font-size: 11px;
    color: var(--accent-green);
}

.hot-trending-card-fire {
    font-size: 14px;
    margin-left: auto;
}


/* ========== HOT TRENDING BAR ========== */
.hot-trending-bar {
    background: linear-gradient(135deg, rgba(255, 100, 50, 0.15) 0%, rgba(255, 50, 50, 0.1) 100%);
    border: 1px solid rgba(255, 100, 50, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.hot-trending-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.hot-trending-title {
    font-size: 13px;
    font-weight: 700;
    color: #ff6b35;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hot-trending-count {
    font-size: 12px;
    color: var(--text-secondary);
}

.hot-trending-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 107, 53, 0.5) transparent;
}

.hot-trending-scroll::-webkit-scrollbar {
    height: 6px;
}

.hot-trending-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.hot-trending-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.5);
    border-radius: 3px;
}

.hot-trending-empty {
    color: var(--text-secondary);
    font-size: 12px;
    font-style: italic;
    padding: 8px 0;
}

.hot-trending-card {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
}

.hot-trending-card:hover {
    background: rgba(255, 107, 53, 0.15);
    border-color: rgba(255, 107, 53, 0.5);
    transform: translateY(-2px);
}

.hot-trending-card-pfp {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-green);
}

.hot-trending-card-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hot-trending-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.hot-trending-card-follows {
    font-size: 11px;
    color: var(--accent-green);
}

.hot-trending-card-fire {
    font-size: 14px;
    margin-left: auto;
}


/* ========== HOT TRENDING BAR ========== */
.hot-trending-bar {
    background: linear-gradient(135deg, rgba(255, 100, 50, 0.15) 0%, rgba(255, 50, 50, 0.1) 100%);
    border: 1px solid rgba(255, 100, 50, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}
.hot-trending-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.hot-trending-title {
    font-size: 13px;
    font-weight: 700;
    color: #ff6b35;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hot-trending-count {
    font-size: 12px;
    color: var(--text-secondary);
}
.hot-trending-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 107, 53, 0.5) transparent;
}
.hot-trending-scroll::-webkit-scrollbar { height: 6px; }
.hot-trending-scroll::-webkit-scrollbar-track { background: transparent; }
.hot-trending-scroll::-webkit-scrollbar-thumb { background: rgba(255, 107, 53, 0.5); border-radius: 3px; }
.hot-trending-empty { color: var(--text-secondary); font-size: 12px; font-style: italic; padding: 8px 0; }
.hot-trending-card {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
}
.hot-trending-card:hover { background: rgba(255, 107, 53, 0.15); border-color: rgba(255, 107, 53, 0.5); transform: translateY(-2px); }
.hot-trending-card-pfp { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-green); }
.hot-trending-card-info { display: flex; flex-direction: column; min-width: 0; }
.hot-trending-card-name { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100px; }
.hot-trending-card-follows { font-size: 11px; color: var(--accent-green); }
.hot-trending-card-fire { font-size: 14px; margin-left: auto; }

/* ===== Share to Discord Button ===== */
.btn-share-icon {
    width: 35px;
    height: 35px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0);
    background: rgba(156, 163, 175, 0);
    color: #9ca3af;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(156, 163, 175, 0);
    margin-left: 4px;
    vertical-align: middle;
}

.btn-share-icon svg {
    display: block;
    width: 14px;
    height: 14px;
    stroke: #9ca3af;
}

.btn-share-icon:hover {
    background: rgba(32, 178, 170, 0.25);
    border-color: var(--accent-green);
    color: var(--accent-green);
    box-shadow: 0 0 12px rgba(32, 178, 170, 0.3);
    transform: scale(1.1);
}

.btn-share-icon:hover svg {
    stroke: var(--accent-green);
}

/* Share button for activity stream - positioned before PFP */
.btn-share-activity {
    width: 28px;
    height: 28px;
    margin-right: 6px;
    flex-shrink: 0;
    vertical-align: middle;
}

.btn-share-activity svg {
    width: 12px;
    height: 12px;
}

/* Activity project wrapper - now includes share button */
.activity-project-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
}

/* ===== Share Channel Popup ===== */
.share-popup {
    position: fixed;
    z-index: 10001;
    background: #161b22;
    border: 1px solid rgba(32, 178, 170, 0.4);
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: shareFadeIn 0.15s ease-out;
}

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

.share-popup-header {
    padding: 8px 12px;
    font-size: 11px;
    color: #9ca3af;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-popup-channels {
    max-height: 200px;
    overflow-y: auto;
}

.share-popup-channel {
    padding: 10px 14px;
    font-size: 13px;
    color: #e6edf3;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.share-popup-channel:hover {
    background: rgba(32, 178, 170, 0.2);
    color: var(--accent-green);
}

.share-popup-channel:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.share-popup-loading {
    padding: 12px;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
}

/* ===== Share Toast ===== */
.share-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(13, 17, 23, 0.95);
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    border: 1px solid rgba(32, 178, 170, 0.4);
    font-size: 14px;
    font-weight: 600;
    z-index: 10002;
    animation: shareToastIn 0.2s ease-out, shareToastOut 0.2s ease-in 1.6s forwards;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

@keyframes shareToastIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

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

/* 🚀 Launch Radar Styles */
.pill-count {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: #8b949e;
    background: rgba(139, 148, 158, 0.1);
    border: 1px solid rgba(139, 148, 158, 0.2);
    border-radius: 12px;
    padding: 4px 12px;
}

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

.launch-table-container table {
    min-width: 700px;
}

.launch-table-container .project-link {
    color: #20B2AA;
    text-decoration: none;
    font-size: 13px;
}

.launch-table-container .project-link:hover {
    color: #48d1cc;
    text-decoration: underline;
}

.launch-table-container .handle {
    display: block;
    color: #7d8590;
    font-size: 11px;
    font-family: 'Space Mono', monospace;
}

.launch-table-container .bio-preview {
    color: #8b949e;
    font-size: 11px;
    margin-top: 3px;
    line-height: 1.3;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.signal-text {
    font-size: 12px;
    color: #e6f3ec;
    display: inline-block;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: default;
}

.conf-badge {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 500;
}

.conf-high {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.conf-medium {
    background: rgba(249, 115, 22, 0.2);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.conf-low {
    background: rgba(139, 148, 158, 0.2);
    color: #8b949e;
    border: 1px solid rgba(139, 148, 158, 0.3);
}

.cat-badge {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 500;
}

.time-cell {
    color: #8b949e;
    font-size: 11px;
    font-family: 'Space Mono', monospace;
}

