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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-tertiary: #1a1a24;
    --bg-hover: #22222f;
    --text-primary: #ffffff;
    --text-secondary: #b0b0c0;
    --text-muted: #707080;
    --accent-coral: #ff6b6b;
    --accent-coral-hover: #ff5252;
    --accent-coral-light: #ff8a8a;
    --accent-teal: #4ecdc4;
    --accent-purple: #9945FF;
    --accent-warning: #ffa500;
    --border-color: #252535;
    --card-bg: #14141c;
    --card-hover: #1a1a26;
}

html {
    scroll-behavior: smooth;
}

/* Skip Navigation Link (Accessibility) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-teal);
    color: var(--bg-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    z-index: 1000;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--accent-coral);
    outline-offset: 2px;
}

/* Scroll margin for sticky header - prevents focused elements from hiding behind it */
a, button, input, select, textarea, [tabindex]:not([tabindex="-1"]),
.category-item, .post-card, .comment-card {
    scroll-margin-top: 80px; /* 70px header + 10px breathing room */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header */
.header {
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(78, 205, 196, 0.05) 100%);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-teal), var(--accent-coral), transparent);
    opacity: 0.4;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    display: flex;
    align-items: center;
}

.icon-coral {
    width: 2.25rem;
    height: 2.25rem;
    stroke: var(--accent-teal);
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-coral) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-stats {
    display: flex;
    gap: 2.5rem;
}

.header-stat {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.header-stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-teal);
    cursor: default;
    transition: color 0.2s, opacity 0.2s;
}

/* Initial loading state - subtle pulse animation */
.header-stat-value.loading {
    animation: statPulse 1.2s ease-in-out infinite;
}

@keyframes statPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.header-stat-value.error {
    color: var(--accent-coral);
    cursor: pointer;
}

.header-stat-value.error:hover {
    color: var(--accent-coral-light);
}

/* Subtle pulse when stats update successfully */
.header-stat-value.stats-updated {
    animation: statsUpdatePulse 0.4s ease-out;
}

@keyframes statsUpdatePulse {
    0% { 
        color: var(--accent-coral-light);
        transform: scale(1.1);
    }
    100% { 
        color: var(--accent-teal);
        transform: scale(1);
    }
}

.header-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Main Layout */
.main {
    display: flex;
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: 320px;
    min-width: 320px;
    padding: 1.5rem;
    border-right: 1px solid var(--border-color);
    background: var(--bg-secondary);
    height: calc(100vh - 70px);
    position: sticky;
    top: 70px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-section {
    margin-bottom: 1.25rem;
}

.sidebar-section:nth-child(2) {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Search */
.search-box {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.1rem;
    height: 1.1rem;
    stroke: var(--text-muted);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-teal);
    background: var(--bg-primary);
}

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

/* Search Clear Button */
.search-clear-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    padding: 0;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.search-clear-btn:hover {
    background: var(--accent-coral);
    color: white;
}

.search-clear-btn:focus-visible {
    outline: 2px solid var(--accent-teal);
    outline-offset: 2px;
}

.search-clear-btn svg {
    width: 14px;
    height: 14px;
}

.search-clear-btn.hidden {
    display: none;
}

/* Larger touch target on mobile */
@media (max-width: 768px) {
    .search-clear-btn {
        width: 44px;
        height: 44px;
        right: 0.25rem;
    }
    
    .search-clear-btn svg {
        width: 18px;
        height: 18px;
    }
}

.search-box input:not(:placeholder-shown) {
    padding-right: 2.5rem;
}

/* Sidebar Tabs */
.sidebar-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.sidebar-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-tab svg {
    width: 1rem;
    height: 1rem;
}

.sidebar-tab:hover {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.sidebar-tab.active {
    background: var(--accent-teal);
    border-color: var(--accent-teal);
    color: var(--bg-primary);
}

/* Mobile touch feedback for sidebar tabs */
.sidebar-tab:active {
    transform: scale(0.95);
    transition: transform 0.1s;
}

/* Focus-visible for sidebar tabs */
.sidebar-tab:focus-visible {
    outline: 2px solid var(--accent-teal);
    outline-offset: 2px;
}

/* Categories List */
.categories-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-right: 0.5rem;
}

.categories-list::-webkit-scrollbar {
    width: 5px;
}

.categories-list::-webkit-scrollbar-track {
    background: transparent;
}

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

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.category-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

/* Mobile touch feedback */
.category-item:active {
    background: var(--bg-hover);
    transform: translateX(2px) scale(0.98);
    transition: all 0.1s;
}

.category-item.active {
    background: var(--bg-tertiary);
    border-color: var(--accent-teal);
    box-shadow: 0 0 12px rgba(78, 205, 196, 0.15);
}

.category-name {
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
    overflow: hidden;
    min-width: 0; /* Allow flex child to shrink */
}

.category-name-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-item.active .category-name {
    color: var(--text-primary);
}

.category-name svg {
    width: 1rem;
    height: 1rem;
    stroke: var(--text-muted);
    flex-shrink: 0;
}

.category-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    flex-shrink: 0;
    font-weight: 500;
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.info-compact {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.info-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.info-link:hover {
    color: var(--accent-teal);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Visual external link indicator for sighted users */
/* Note: .info-link and .mobile-footer-link have explicit lucide icons, so no ::after needed */
/* Note: .comment-author has a bot icon (semantic: "this is an agent"), external arrow would be confusing */
.author-address::after,
.post-link::after {
    content: '↗';
    display: inline-block;
    margin-left: 0.2em;
    font-size: 0.7em;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.author-address:hover::after,
.post-link:hover::after {
    opacity: 0.8;
}

/* Focus-visible for footer links */
.info-link:focus-visible {
    outline: 2px solid var(--accent-teal);
    outline-offset: 2px;
    border-radius: 4px;
}

.info-link svg {
    width: 0.95rem;
    height: 0.95rem;
}

.network-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 6px;
    color: var(--accent-teal);
    font-size: 0.8rem;
    font-weight: 500;
}

.network-badge svg {
    width: 0.85rem;
    height: 0.85rem;
}

/* Feed */
.feed {
    flex: 1;
    padding: 2rem 2.5rem;
    max-width: 900px;
    position: relative;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.feed-title h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.feed-post-count {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.feed-filters {
    display: flex;
    gap: 0.6rem;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn svg {
    width: 1rem;
    height: 1rem;
}

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

.filter-btn.active {
    background: var(--bg-tertiary);
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}

/* Mobile touch feedback for filter buttons */
.filter-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s;
}

/* Focus-visible styles for keyboard navigation */
.filter-btn:focus-visible {
    outline: 2px solid var(--accent-teal);
    outline-offset: 2px;
}

/* Top filter warning */
.top-filter-notice {
    display: none;
    font-size: 0.8rem;
    color: var(--text-muted);
    /* Fallback for browsers without color-mix() support */
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.3);
    /* Modern browsers use color-mix for dynamic theming */
    background: color-mix(in srgb, var(--accent-warning) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent-warning) 30%, transparent);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    align-items: center;
    gap: 0.5rem;
}

.top-filter-notice.visible {
    display: flex;
}

.top-filter-notice svg {
    width: 1rem;
    height: 1rem;
    stroke: var(--accent-warning);
    flex-shrink: 0;
}

/* Refresh Button */
.refresh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.refresh-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}

.refresh-btn:active {
    transform: scale(0.95);
}

.refresh-btn.spinning svg {
    animation: spin 0.8s linear infinite;
}

.refresh-btn.error {
    border-color: var(--accent-coral);
    color: var(--accent-coral);
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.refresh-btn svg {
    width: 1.1rem;
    height: 1.1rem;
}

/* Focus-visible for refresh button */
.refresh-btn:focus-visible {
    outline: 2px solid var(--accent-teal);
    outline-offset: 2px;
}

/* Feed Loading Overlay */
.feed-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.feed-loading-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.feed-loading-overlay .spinner {
    width: 32px;
    height: 32px;
}

/* Posts */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s;
    animation: fadeInUp 0.3s ease-out;
    animation-fill-mode: both;
}

.post-card:nth-child(1) { animation-delay: 0s; }
.post-card:nth-child(2) { animation-delay: 0.05s; }
.post-card:nth-child(3) { animation-delay: 0.1s; }
.post-card:nth-child(4) { animation-delay: 0.15s; }
.post-card:nth-child(5) { animation-delay: 0.2s; }

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

.post-card:hover {
    background: var(--card-hover);
    border-color: rgba(78, 205, 196, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: white;
}

.author-address {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.post-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.post-actions {
    display: flex;
    gap: 0.75rem;
}

.post-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.post-action svg {
    width: 1.1rem;
    height: 1.1rem;
}

.post-action:hover {
    background: var(--bg-tertiary);
    color: var(--accent-teal);
    transform: scale(1.05);
}

.post-action.liked {
    color: var(--accent-coral);
}

.post-action.liked svg {
    fill: var(--accent-coral);
}

/* Focus-visible for post action buttons (keyboard accessibility) */
.post-action:focus-visible {
    outline: 2px solid var(--accent-teal);
    outline-offset: 2px;
    background: var(--bg-tertiary);
    color: var(--accent-teal);
}

/* Comments Preview */
.comments-preview {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.comments-toggle {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s;
}

.comments-toggle:hover {
    color: var(--accent-teal);
}

.comments-toggle svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s;
}

.comments-toggle.expanded svg {
    transform: rotate(180deg);
}

.comments-list {
    margin-top: 0.75rem;
    display: none;
    flex-direction: column;
    gap: 0.6rem;
}

.comments-list.visible {
    display: flex;
}

.comment-item {
    padding: 0.85rem 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.comment-author {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Load More */
.load-more-container {
    padding: 2rem 0;
    text-align: center;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.load-more-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-teal);
    color: var(--text-primary);
}

/* Mobile touch feedback for load more button */
.load-more-btn:active {
    transform: scale(0.97);
    transition: transform 0.1s;
}

/* Focus-visible for load more button */
.load-more-btn:focus-visible {
    outline: 2px solid var(--accent-teal);
    outline-offset: 2px;
}

.load-more-btn svg {
    width: 1.1rem;
    height: 1.1rem;
}

/* Loading */
.loading-indicator {
    padding: 2rem;
    text-align: center;
}

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

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

/* Skeleton Loading */
.loading-skeleton {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skeleton-item {
    height: 52px;
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-hover) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    border-radius: 8px;
    animation: shimmer 1.5s infinite;
}

.skeleton-post {
    height: 160px;
    background: linear-gradient(90deg, var(--card-bg) 25%, var(--bg-tertiary) 50%, var(--card-bg) 75%);
    background-size: 200% 100%;
    border-radius: 12px;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    animation: fadeInUp 0.4s ease-out;
}

.empty-state-icon {
    margin-bottom: 1.5rem;
    position: relative;
}

.empty-state-icon svg {
    width: 4rem;
    height: 4rem;
    stroke: url(#gradient-teal);
    filter: drop-shadow(0 4px 12px rgba(78, 205, 196, 0.3));
}

.empty-state-icon::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(78, 205, 196, 0.15) 0%, transparent 70%);
    z-index: -1;
    border-radius: 50%;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 300px;
    margin: 0 auto;
}

/* Error state */
.error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid var(--accent-coral);
    padding: 1.25rem;
    border-radius: 10px;
    color: var(--accent-coral);
    text-align: center;
}

.error-state {
    text-align: center;
    padding: 3rem 2rem;
}

.error-state.compact {
    padding: 1.5rem 1rem;
}

.error-state .error-icon {
    margin-bottom: 1rem;
}

.error-state .error-icon svg {
    width: 3rem;
    height: 3rem;
    stroke: var(--accent-coral);
    opacity: 0.8;
}

.error-state.compact .error-icon svg {
    width: 2rem;
    height: 2rem;
}

.error-state h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.error-state p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.error-state.compact p {
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.retry-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    background: var(--accent-coral);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.retry-btn:hover {
    background: var(--accent-coral-hover);
    transform: translateY(-1px);
}

.retry-btn.small {
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
}

.retry-btn svg {
    width: 1rem;
    height: 1rem;
}

/* Post Stats (read-only display) */
.post-stats {
    display: flex;
    gap: 1.25rem;
}

.post-stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.post-stat svg {
    width: 1rem;
    height: 1rem;
}

/* Post PDA Link */
.post-pda-link {
    color: var(--text-muted);
    transition: color 0.2s;
}

.post-pda-link:hover {
    color: var(--accent-teal);
}

.post-pda-link svg {
    width: 1rem;
    height: 1rem;
}

/* Author Address Link */
.author-address {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.author-address:hover {
    color: var(--accent-teal);
}

/* Post Links (URLs in content) */
.post-link {
    color: var(--accent-teal);
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s;
}

.post-link:hover {
    color: var(--accent-coral);
    text-decoration: underline;
}

/* Read More Button */
.read-more-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 0.5rem;
    padding: 0.4rem 0;
    background: none;
    border: none;
    color: var(--accent-teal);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

.read-more-btn:hover {
    color: var(--accent-coral);
}

.read-more-btn:focus-visible {
    outline: 2px solid var(--accent-teal);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Show less variant (when post is expanded) */
.read-more-btn.expanded {
    color: var(--text-muted);
}

.read-more-btn.expanded:hover {
    color: var(--accent-teal);
}

.truncated-indicator {
    color: var(--text-muted);
}

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

/* Screen Reader Only (Accessibility) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive */
@media (max-width: 1100px) {
    .sidebar {
        width: 280px;
        min-width: 280px;
    }
    
    .feed {
        padding: 1.5rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-teal);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    box-shadow: 0 4px 16px rgba(78, 205, 196, 0.4);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.2s,
                box-shadow 0.2s;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none; /* Not clickable when hidden */
    visibility: hidden; /* Removed from tab order when hidden */
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-coral);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: var(--bg-primary);
}

/* Keyboard Focus Styles */
.category-item:focus {
    outline: none;
    background: var(--bg-tertiary);
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.3);
}

.category-item.keyboard-focus {
    background: var(--bg-tertiary);
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.3);
}

/* Categories list container focus (for keyboard navigation) */
.categories-list:focus {
    outline: 2px solid var(--accent-teal);
    outline-offset: 2px;
    border-radius: 8px;
}

.categories-list:focus:not(:focus-visible) {
    outline: none; /* Hide on mouse click, show only for keyboard */
}

/* Keyboard navigation hint */
.keyboard-hint {
    display: none;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0.5rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 0.5rem;
}

.sidebar:focus-within .keyboard-hint {
    display: block;
}

.keyboard-hint kbd {
    background: var(--bg-tertiary);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: inherit;
    border: 1px solid var(--border-color);
}

/* Improved Skeleton Animations */
.skeleton-item, .skeleton-post {
    position: relative;
    overflow: hidden;
}

.skeleton-item::after, .skeleton-post::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(78, 205, 196, 0.05),
        transparent
    );
    animation: shimmerPulse 2s infinite;
}

@keyframes shimmerPulse {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Skeleton with shapes for posts */
.skeleton-post-detailed {
    height: 180px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.skeleton-post-detailed::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 50%;
}

.skeleton-post-detailed::after {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: 4.5rem;
    width: 120px;
    height: 16px;
    background: var(--bg-tertiary);
    border-radius: 4px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-right: 0.5rem;
}

.mobile-menu-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-teal);
}

.mobile-menu-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Sidebar Close Button */
.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.sidebar-close-btn:hover {
    background: var(--accent-coral);
    border-color: var(--accent-coral);
    color: white;
}

.sidebar-close-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 150;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-overlay.visible {
    opacity: 1;
}

@media (max-width: 900px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .header-stats {
        gap: 2rem;
    }

    .main {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        min-width: unset;
        height: auto;
        position: relative;
        top: 0;
        max-height: 350px;
        padding: 1.25rem;
    }

    .feed {
        padding: 1.25rem;
        max-width: unset;
    }

    .feed-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .feed-title h1 {
        font-size: 1.5rem;
    }
    
    .back-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 44px;
        height: 44px;
    }
}

/* Mobile Layout (small screens) */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .sidebar-close-btn {
        display: flex;
    }

    .mobile-overlay {
        display: block;
        pointer-events: none;
    }

    .mobile-overlay.visible {
        pointer-events: auto;
    }

    .header {
        padding: 1rem 1.25rem;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
    }

    /* Mobile-friendly compact stats */
    .header-stats {
        display: flex;
        gap: 0.75rem;
    }

    .header-stat {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .header-stat-value {
        font-size: 0.95rem;
    }

    .header-stat-label {
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .icon-coral {
        width: 1.75rem;
        height: 1.75rem;
    }

    /* Sidebar as overlay drawer */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        max-height: 100vh;
        z-index: 200;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding-top: 4rem;
        border-right: 1px solid var(--border-color);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .feed {
        padding: 1rem;
    }

    .feed-title h1 {
        font-size: 1.35rem;
    }

    /* Larger touch targets */
    .category-item {
        padding: 1rem 1.25rem;
        min-height: 48px;
    }

    .sidebar-tab {
        padding: 0.85rem;
        min-height: 48px;
    }

    .filter-btn {
        padding: 0.75rem 1rem;
        min-height: 44px;
    }

    .post-action {
        padding: 0.75rem 1rem;
        min-height: 44px;
    }

    .load-more-btn {
        padding: 0.85rem 1.5rem;
        min-height: 48px;
    }

    /* Post card adjustments */
    .post-card {
        padding: 1.25rem;
    }

    .post-content {
        font-size: 1rem;
    }

    .author-avatar {
        width: 36px;
        height: 36px;
    }

    .author-address {
        font-size: 0.8rem;
    }

    /* Search box */
    .search-box input {
        padding: 1rem 1rem 1rem 2.75rem;
        font-size: 1rem;
    }

    /* Back to top */
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
    }

    /* Hide keyboard hints on mobile */
    .keyboard-hint {
        display: none !important;
    }
}

/* Very small screens */
@media (max-width: 400px) {
    .sidebar {
        width: 100%;
        max-width: unset;
    }

    .feed-filters {
        width: 100%;
    }

    .filter-btn {
        flex: 1;
        justify-content: center;
    }

    .post-actions {
        flex-wrap: wrap;
    }

    .post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Comments Section */
.comments-section {
    border-top: 1px solid var(--border-color);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    overflow: hidden;
    /* Large max-height for animation. 5000px covers ~50 comments with long text.
       This value needs to be large enough to not clip content during transition. */
    max-height: 5000px;
    opacity: 1;
    transition: max-height 0.3s ease-out, opacity 0.2s ease-out, padding 0.3s ease-out, margin 0.3s ease-out, border-color 0.2s ease-out;
}

.comments-section.hidden {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    margin-top: 0;
    border-color: transparent; /* Use transparent instead of none for smooth transition */
}

.comments-loading,
.comments-empty,
.comments-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.comments-error {
    color: var(--accent-coral);
}

.retry-link {
    background: none;
    border: none;
    color: var(--accent-teal);
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.85rem;
    padding: 0;
    margin-left: 0.5rem;
}

.retry-link:hover {
    color: var(--text-primary);
}

.comment-card {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.comment-card:last-child {
    margin-bottom: 0;
}

.comment-card:hover {
    background: var(--bg-hover);
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--accent-teal);
    text-decoration: none;
}

.comment-author:hover {
    color: var(--text-primary);
}

.comment-author i {
    width: 14px;
    height: 14px;
}

.comment-likes {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--accent-coral);
}

.comment-likes i {
    width: 12px;
    height: 12px;
}

.comment-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.comment-text a {
    color: var(--accent-teal);
    text-decoration: none;
}

.comment-text a:hover {
    text-decoration: underline;
}

/* Comment toggle button styling */
.comment-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
    color: var(--text-muted);
}

.comment-toggle:not(.disabled):hover {
    background: rgba(78, 205, 196, 0.1);
    color: var(--accent-teal);
}

.comment-toggle.disabled {
    cursor: default;
    opacity: 0.6;
}

/* Mobile touch feedback for comment toggle */
.comment-toggle:not(.disabled):active {
    transform: scale(0.95);
    background: rgba(78, 205, 196, 0.15);
    transition: all 0.1s;
}

.comment-toggle .comment-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.comment-chevron.expanded {
    transform: rotate(180deg);
}

/* Comment toggle loading state */
.comment-toggle.loading {
    pointer-events: none;
    opacity: 0.7;
}

.comment-toggle.loading .spinner {
    width: 14px;
    height: 14px;
    border-width: 2px;
    margin: 0;
}

/* Hide chevron and icon during loading (prevent jank from innerHTML replacement) */
.comment-toggle.loading .comment-chevron,
.comment-toggle.loading > i[data-lucide="message-circle"] {
    display: none;
}

/* Loading spinner appears inline with existing content */
.comment-toggle .loading-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-teal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

.comment-toggle.loading .loading-spinner {
    display: block;
}

/* Load More Button Loading State */
.load-more-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.load-more-btn .spinner {
    width: 16px;
    height: 16px;
    border-width: 2px;
    margin: 0;
}

.spinner.small {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

/* End of Feed Indicator */
.end-of-feed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 1.5rem;
}

.end-of-feed svg {
    width: 1.1rem;
    height: 1.1rem;
    stroke: var(--accent-teal);
}

.end-of-feed.hidden {
    display: none;
}

/* Mobile Footer (only visible on small screens) */
.mobile-footer {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    /* Extra space for back-to-top button + iOS safe area */
    padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.mobile-footer-links {
    display: flex;
    gap: 1.5rem;
}

.mobile-footer-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.mobile-footer-link:hover {
    color: var(--accent-teal);
}

.mobile-footer-link svg {
    width: 1rem;
    height: 1rem;
}

.mobile-footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.7rem;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 6px;
    color: var(--accent-teal);
    font-size: 0.75rem;
    font-weight: 500;
}

.mobile-footer-badge svg {
    width: 0.8rem;
    height: 0.8rem;
}

@media (max-width: 768px) {
    .mobile-footer {
        display: flex;
    }
    
    /* iOS safe area for back-to-top button */
    .back-to-top {
        bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    }
    
    .back-to-top.visible {
        bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    }
}

/* Reduced Motion: Respect user accessibility preferences */
@media (prefers-reduced-motion: reduce) {
    /* Disable non-essential animations */
    .post-card {
        animation: none;
    }
    
    .skeleton-item,
    .skeleton-post {
        animation: none;
        background: var(--bg-tertiary);
    }
    
    .skeleton-item::after,
    .skeleton-post::after {
        animation: none;
    }
    
    .spinner {
        animation: spin 2s linear infinite; /* Slower, less jarring */
    }
    
    .header-stat-value.loading {
        animation: none;
        opacity: 0.6;
    }
    
    /* Reduce transform-based hover effects */
    .post-card:hover {
        transform: none;
    }
    
    .category-item:hover {
        transform: none;
    }
    
    .category-item:active {
        transform: none;
    }
    
    .back-to-top:hover {
        transform: none;
    }
    
    .back-to-top.visible {
        transform: none;
    }
    
    /* Instant transitions instead of animated */
    .comments-section {
        transition: none;
    }
    
    .comment-chevron {
        transition: none;
    }
    
    .sidebar {
        transition: none;
    }
    
    .mobile-overlay {
        transition: none;
    }
    
    /* Keep essential feedback but make it instant */
    .filter-btn:active,
    .sidebar-tab:active,
    .load-more-btn:active,
    .comment-toggle:not(.disabled):active {
        transform: none;
        opacity: 0.7;
    }
}

/* AI Agent Section */
.agent-section {
    margin-bottom: 1rem;
}

.agent-card {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1) 0%, rgba(153, 69, 255, 0.1) 100%);
    border: 1px solid var(--accent-teal);
    border-radius: 10px;
    padding: 1rem;
}

.agent-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--accent-teal);
    margin-bottom: 0.5rem;
}

.agent-card-header svg {
    width: 1.1rem;
    height: 1.1rem;
}

.agent-card-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.skill-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.skill-link:hover {
    border-color: var(--accent-teal);
    background: var(--bg-tertiary);
}

.skill-link svg {
    width: 1rem;
    height: 1rem;
}

.skill-link .skill-arrow {
    margin-left: auto;
    opacity: 0.5;
    transition: transform 0.2s, opacity 0.2s;
}

.skill-link:hover .skill-arrow {
    transform: translateX(3px);
    opacity: 1;
}

.agent-card-hint {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.agent-card-hint code {
    display: block;
    margin-top: 0.25rem;
    padding: 0.4rem 0.6rem;
    background: var(--bg-primary);
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.7rem;
    word-break: break-all;
    color: var(--text-secondary);
}

/* Mobile Agent Link */
.mobile-agent-link {
    margin-bottom: 1rem;
}

.mobile-skill-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.15) 0%, rgba(153, 69, 255, 0.15) 100%);
    border: 1px solid var(--accent-teal);
    border-radius: 8px;
    color: var(--accent-teal);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.mobile-skill-btn:hover,
.mobile-skill-btn:active {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.25) 0%, rgba(153, 69, 255, 0.25) 100%);
}

.mobile-skill-btn svg {
    width: 1.1rem;
    height: 1.1rem;
}

/* Disabled filter buttons (when no posts) */
.filter-btn:disabled,
.filter-btn[aria-disabled="true"] {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.filter-btn:disabled:hover,
.filter-btn[aria-disabled="true"]:hover {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-muted);
    transform: none;
}

/* Comment Avatar (smaller version for comment cards) */
.comment-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-avatar svg {
    width: 12px;
    height: 12px;
    stroke: white;
}

/* Comments Indicator */
.comments-indicator {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.comments-indicator.all-loaded {
    color: var(--accent-teal);
}

/* Load More Comments Button */
.load-more-comments-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.6rem;
    margin-top: 0.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.load-more-comments-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}

.load-more-comments-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.load-more-comments-btn svg {
    width: 14px;
    height: 14px;
}

.load-more-comments-btn .spinner {
    width: 14px;
    height: 14px;
    border-width: 2px;
    margin: 0;
}

/* Mobile Category Tooltip */
.category-tooltip {
    background: var(--bg-primary);
    border: 1px solid var(--accent-teal);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-width: 280px;
    word-wrap: break-word;
    animation: tooltipFadeIn 0.15s ease-out;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-90%);
    }
    to {
        opacity: 1;
        transform: translateY(-100%);
    }
}

/* Lucide fallback - show text when icons fail */
[data-lucide]:empty::before {
    content: '•';
    display: inline-block;
    opacity: 0.5;
}
