/* Harry Twitter Bot Dashboard - Clean Crypto Style */

:root {
    --bg-primary: #1b1b1b;
    --bg-section: #12121200;
    --bg-hover: #2b2b2b;
    --border: #7d7d7d39;
    --text-primary: #e6edf3;
    --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 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.15;
    background-image: radial-gradient(circle, rgba(119, 255, 207, 0.069) 1px, transparent 1px);
    background-size: 16px 16px;
}

/* ============================================
   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: 26px;            /* Main title font size */
    --title-font-weight: 600;          /* 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: dotted;        /* 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 */
    
    /* Filters Spacing - Space below title, above filters */
    --title-filter-gap: 16px;          /* Space between title and filters row */
    
    /* Filters to Table - Space below filters, above table */
    --filter-table-gap: 12px;         /* 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: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(17, 21, 28, 0) 30%, rgba(17, 21, 28, 0) 70%, transparent 100%);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: none;
    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 {
    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 {
    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 {
    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: 15px;
    transition: all 0.2s;
}

.logout:hover {
    color: var(--accent-red);
    border-color: var(--accent-red);
}

/* 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;
}

.two-column .section {
    margin-bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 700px;
}

.two-column .section-content {
    flex: 1;
    overflow: auto;
    min-height: 650px;
    height: 650px;
    display: flex;
    flex-direction: column;
}

/* Sections */
.section {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: 15px;
    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: 23px;
    font-weight: 600;
}

.controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* 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: transparent;
}

.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 {
    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);
}

/* Filters row - everything in one line */
.filters-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: nowrap;
    flex-shrink: 0;
    width: 100%;
    margin-bottom: var(--filter-table-gap, 12px);
}

.filters-row .time-filters {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.filters-row .time-filters .tab {
    padding: 5px 10px;
    font-size: 12px;
    min-width: 36px;
}

.filters-row .tag-filters {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.filters-row .follower-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.filters-row .follower-input {
    width: 160px;
    min-width: 160px;
    padding: 8px 12px;
    font-size: 13px;
}

.filters-row .compact-search {
    flex: 1;
    min-width: 200px;
    padding: 8px 14px;
    font-size: 13px;
    flex-shrink: 1;
}

/* 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="TESTER"],
.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: 15px;
}

.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: 8px 12px;
    font-size: 15px;
    border-radius: 15px;
    min-width: 180px;
    transition: all 0.3s ease;
}

.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: 15px;
    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: var(--table-header-border-bottom) solid var(--table-border-color);
    background: var(--bg-primary);
}

.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 {
    background: var(--bg-hover);
    transform: scale(1.005);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 1;
    position: relative;
}

.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: 8px;
}


.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 {
    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: var(--accent-green);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap;
    line-height: 1;
    border: 1px solid var(--bg-section);
}

.project-info {
    display: inline-flex;
    flex-direction: column;
    vertical-align: middle;
    gap: 5px;
    font-size: 18px; /* Font size 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;
    vertical-align: middle;
    gap: 8px;
    min-width: 200px;
    overflow: visible;
}

.follows-count {
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
    height: 41px;
    line-height: 41px;
}

.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 {
    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: 15px;
    overflow: hidden;
}

.activity-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-green-light));
    border-radius: 15px;
    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 - Column headers like in Top Followed table */
.activity-header-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    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 {
    background: var(--bg-hover);
}


.activity-item: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: flex-start;
}

.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;
}



.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 {
    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);
}

.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 {
    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: 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 {
    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: 600;
    font-size: 18px; /* Font size for follower names */
}

.x-link: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: 600;
}

.activity-text .x-link: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;
}

/* Charts Section */
#chartsSection {
    margin-top: 16px;
}

#chartsSection .section-header {
    justify-content: flex-start;
    padding-left: 20px;
}

#chartsSection .chart-info {
    font-size: 23px;
    font-weight: 600;
    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: 15px;
    padding: 8px 14px;
    color: var(--text-secondary);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.chart-filters-inline select: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: 15px;
    padding: 8px 14px;
    color: var(--text-secondary);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.chart-filters-inline .btn: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;
}

.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 {
    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;
}

.tag-filter:hover {
    border-color: var(--accent-green);
    color: var(--text-primary);
}

.tag-filter.active {
    background: var(--accent-green);
    color: #fff;
    border-color: var(--accent-green);
}

/* 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: 
        0 0 6px rgba(255, 255, 255, 0.1),
        inset 0 0 4px rgba(255, 255, 255, 0.05);
    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: 
        0 0 8px rgba(64, 224, 208, 0.3),
        inset 0 0 4px rgba(64, 224, 208, 0.1);
}

.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: 
        0 0 15px rgba(64, 224, 208, 0.7),
        inset 0 0 10px rgba(64, 224, 208, 0.4);
}

.tag-filter.tag-ring[data-tag="TESTER"],
.tag-filter.tag-ring[data-activity-tag="TESTER"],
.tag-filter.tag-ring[data-recent-activity-tag="TESTER"] {
    border-color: rgba(241, 63, 63, 0.6);
    box-shadow: 
        0 0 8px rgba(241, 63, 63, 0.3),
        inset 0 0 4px rgba(241, 63, 63, 0.1);
}

.tag-filter.tag-ring[data-tag="TESTER"].active,
.tag-filter.tag-ring[data-activity-tag="TESTER"].active,
.tag-filter.tag-ring[data-recent-activity-tag="TESTER"].active {
    background: rgba(241, 63, 63, 0.75);
    border-color: #f13f3f;
    box-shadow: 
        0 0 15px rgba(241, 63, 63, 0.7),
        inset 0 0 10px rgba(241, 63, 63, 0.4);
}

.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: 
        0 0 8px rgba(237, 214, 6, 0.313),
        inset 0 0 4px rgba(253, 234, 60, 0.1);
}

.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: 
        0 0 15px rgba(253, 234, 60, 0.6),
        inset 0 0 10px rgba(253, 234, 60, 0.4);
}

.tag-filter.tag-ring: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 {
    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="TESTER"]:hover,
.tag-filter.tag-ring[data-activity-tag="TESTER"]:hover,
.tag-filter.tag-ring[data-recent-activity-tag="TESTER"]: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 {
    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: 
        0 0 8px rgba(192, 192, 192, 0.4),
        inset 0 0 4px rgba(192, 192, 192, 0.2);
}

.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: 
        0 0 15px rgba(255, 255, 255, 0.7),
        inset 0 0 10px rgba(255, 255, 255, 0.5);
}

.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 {
    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: 
        0 0 8px rgba(20, 141, 255, 0.4),
        inset 0 0 4px rgba(20, 141, 255, 0.2);
}

.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: 
        0 0 15px rgba(20, 141, 255, 0.7),
        inset 0 0 10px rgba(20, 141, 255, 0.4);
}

.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 {
    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: 
        0 0 8px rgba(153, 69, 255, 0.4),
        inset 0 0 4px rgba(153, 69, 255, 0.2);
}

.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: 
        0 0 15px rgba(153, 69, 255, 0.7),
        inset 0 0 10px rgba(153, 69, 255, 0.4);
}

.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 {
    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 {
    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: 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: 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: var(--accent-green);
    color: #fff;
    font-weight: 600;
}

.btn-primary: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 {
    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: 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;
    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: var(--title-font-weight);
    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 {
    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="TESTER"],
.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: var(--accent-green);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap;
    line-height: 1;
    border: 1px solid var(--bg-section);
}






/* Projects Found Count */
.projects-found {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-green);
    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: 6px 10px;
    font-size: 13px;
}

.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: 22px;
    font-weight: 700;
    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 {
    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: var(--accent-green);
    border-radius: 15px;
}

/* 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 {
    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-tester {
    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 {
    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-tester {
    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 {
    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 {
    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;
    }
}

/* 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 {
    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 {
    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 {
    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 {
    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 {
    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 {
    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 {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.heatmap-tab.active {
    background: var(--accent-green);
    color: var(--bg-primary);
    border-color: var(--accent-green);
}

/* Activity Chart Container */
.chart-container-line {
    padding: 16px 20px;
    height: 350px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

/* Activity View */
.activity-view {
    width: 100%;
}

.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 {
    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;
}

.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.tester {
    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;
    }
}
