:root {
    --bg-color: #05060a;
    --card-bg: rgba(15, 18, 28, 0.7);
    --border-color: rgba(0, 255, 157, 0.15);
    --primary-color: #00ff9d;
    --secondary-color: #00d4ff;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-glow: rgba(0, 255, 157, 0.2);
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.background-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(60px);
    pointer-events: none;
}

header {
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background: rgba(5, 6, 10, 0.8);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.pulse-icon {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 15px var(--primary-color);
}

.pulse-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo h1 span {
    color: var(--primary-color);
}

.app-desc {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-mono);
    pointer-events: none;
    opacity: 0.8;
}


.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.install-btn {
    display: none;
    /* Controlled by JS */
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.install-btn:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.3);
}

.search-container {
    display: flex;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 4px 16px;
    width: 400px;
    transition: all 0.3s ease;
}

.search-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.2);
}

.search-container input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    padding: 8px;
    width: 100%;
    font-family: var(--font-sans);
}

.search-container button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.search-container button:hover {
    color: var(--primary-color);
}

.app-container {
    display: grid;
    grid-template-columns: max-content 1fr 340px;
    min-height: calc(100vh - 80px);
}

.briefings-sidebar {
    background: rgba(15, 18, 28, 0.4);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
    max-height: calc(100vh - 80px);
    -ms-overflow-style: none;
    scrollbar-width: none;
    min-width: 320px;
    max-width: 420px;
}

.briefings-sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar-section {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 255, 157, 0.1);
}

.cve-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.cve-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.cve-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
}

.cve-info {
    flex: 1;
}

.cve-id {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--primary-color);
    font-weight: 700;
}

.cve-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
}

.score-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: white;
    min-width: 32px;
    text-align: center;
}

.score-critical {
    background: #ff4757;
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.4);
}

.score-high {
    background: #ffa502;
}

.score-medium {
    background: #eccc68;
    color: #000;
}

.skeleton-item.mini {
    height: 40px;
}

.sidebar-header h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.sidebar-header p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.briefing-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.briefing-group label {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--secondary-color);
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 4px;
}

.provider-dropdown {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 157, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.provider-header {
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: all 0.2s ease;
    white-space: nowrap;
    gap: 12px;
}

.provider-header:hover {
    background: rgba(0, 255, 157, 0.05);
    color: var(--primary-color);
}

.direct-link-icon {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    color: var(--text-muted);
    opacity: 0.5;
    transition: all 0.2s ease;
    padding: 2px;
    border-radius: 4px;
}

.direct-link-icon:hover {
    color: var(--secondary-color);
    background: rgba(0, 212, 255, 0.1);
    opacity: 1;
}

.provider-dropdown.open {
    background: rgba(15, 18, 28, 0.8);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.provider-dropdown.open .dropdown-icon {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.provider-feed {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.2);
}

.provider-dropdown.open .provider-feed {
    max-height: 400px;
    padding: 8px 12px 14px 12px;
}

/* Sidebar Feed Items */
.feed-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
}

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

.feed-link-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    transition: color 0.2s;
    white-space: normal;
}

.feed-link-title:hover {
    color: var(--primary-color);
}

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

.feed-date {
    font-size: 0.65rem;
    color: var(--text-muted);
    opacity: 0.5;
    font-family: var(--font-mono);
}

.feed-external-link {
    font-size: 0.65rem;
    color: var(--secondary-color);
    background: rgba(0, 212, 255, 0.1);
    padding: 1px 6px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.feed-external-link:hover {
    background: var(--secondary-color);
    color: #000;
}

.dropdown-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.intelligence-right {
    background: rgba(15, 18, 28, 0.4);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: calc(100vh - 80px);
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.intelligence-right::-webkit-scrollbar {
    display: none;
}

.collapsible-section {
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(0, 255, 157, 0.02);
    transition: background 0.2s ease;
}

.section-header:hover {
    background: rgba(0, 255, 157, 0.05);
}

.section-header h3 {
    font-size: 0.95rem;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.toggle-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.collapsible-section.open .toggle-icon {
    transform: rotate(180deg);
}

.section-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    display: none;
}

.collapsible-section.open .section-content {
    display: block;
}

#section-xfeed.open .section-content {
    max-height: 480px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#section-xfeed.open .section-content::-webkit-scrollbar {
    display: none;
}

#section-critical.open .section-content,
#section-recent.open .section-content {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#section-critical.open .section-content::-webkit-scrollbar,
#section-recent.open .section-content::-webkit-scrollbar {
    display: none;
}

.section-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    opacity: 0.7;
}

.breach-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.breach-item {
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

.breach-item:hover {
    transform: translateX(-5px);
}

.breach-item:hover h4 {
    color: var(--primary-color);
}

.breach-item h4 {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 6px;
    line-height: 1.3;
}

.breach-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.breach-date {
    color: #ff4757;
    /* Warning Red */
}

.skeleton-item {
    height: 60px;
    background: linear-gradient(90deg, var(--card-bg) 25%, rgba(255, 255, 255, 0.05) 50%, var(--card-bg) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

main {
    padding: 2rem;
    max-width: none;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.filter-bar h2 {
    font-size: 2rem;
    font-weight: 600;
}

.time-label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.dot.live {
    background: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.discovery-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.news-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    background: rgba(15, 18, 28, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--secondary-color);
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
}

.news-card h3 {
    font-size: 1.25rem;
    color: white;
    line-height: 1.3;
}

.news-card .desc-full {
    display: none;
}

.news-card.expanded .desc-short {
    display: none;
}

.news-card.expanded .desc-full {
    display: block;
    color: var(--text-main);
    line-height: 1.6;
}

.read-full-btn {
    display: none;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.news-card.expanded .read-full-btn {
    display: inline-block;
}

.read-full-btn:hover {
    text-decoration: underline;
    transform: translateX(5px);
}

.news-card.expanded {
    grid-column: 1 / -1;
    background: rgba(15, 18, 28, 0.95);
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 255, 157, 0.2);
    cursor: default;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.source {
    color: var(--primary-color);
    font-weight: 600;
}

.skeleton-card {
    height: 250px;
    background: linear-gradient(90deg, var(--card-bg) 25%, rgba(255, 255, 255, 0.05) 50%, var(--card-bg) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 16px;
}

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

    100% {
        background-position: -200% 0;
    }
}

/* Discovery View */
.discovery-view {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem 0;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeIn 0.4s ease-out;
}

.discovery-summary {
    background: linear-gradient(135deg, rgba(0, 255, 157, 0.1) 0%, rgba(0, 153, 255, 0.1) 100%);
    border: 1px solid rgba(0, 255, 157, 0.2);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.discovery-summary h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.discovery-summary p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-main);
}

.discovery-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.discovery-section h4 {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.discovery-links {
    display: grid;
    gap: 1rem;
}

.discovery-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.discovery-link-item:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(5px);
}

.link-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    margin-right: 15px;
}

.link-title {
    color: var(--text-main);
    font-weight: 500;
}

.link-desc-mini {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
    opacity: 0.8;
}

.link-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    white-space: nowrap;
}

.back-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    background: var(--primary-color);
    color: #000;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

@media (max-width: 1024px) {
    .app-container {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .briefings-sidebar,
    .intelligence-right {
        width: 100%;
        border-right: none;
        border-left: none;
        border-bottom: 1px solid var(--border-color);
        max-height: none;
        overflow: visible;
        padding: 1.5rem;
    }

    /* Reorder for mobile: News first, then Intel, then CVEs */
    main {
        order: 1;
        padding: 1.5rem;
    }

    .briefings-sidebar {
        order: 2;
    }

    .intelligence-right {
        display: flex;
        /* Force show on mobile */
        order: 3;
    }

    header {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem 5%;
    }

    .app-desc {
        display: none;
        /* Hide description on mobile to prevent overlap */
    }

    .search-container {
        width: 100%;
        order: 3;
        margin-top: 0.5rem;
    }

    .header-controls {
        width: 100%;
        justify-content: space-between;
    }

    .logo h1 {
        font-size: 1.2rem;
    }
}

/* ==========================================================================
   Category Filters & Color-Coded Tags
   ========================================================================== */

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 255, 157, 0.05);
}

.filter-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 157, 0.15);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: var(--font-sans);
    font-weight: 600;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.15);
}

.filter-btn.active {
    background: rgba(0, 255, 157, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 12px rgba(0, 255, 157, 0.25);
}

/* Color-Coded Article Tags */
.card-tag.tag-vulnerability {
    color: #ff6b6b;
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.08);
}
.card-tag.tag-breach {
    color: #ff758f;
    border-color: #ff758f;
    background: rgba(255, 117, 143, 0.08);
}
.card-tag.tag-security {
    color: #00d4ff;
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.08);
}
.card-tag.tag-research {
    color: #a55eea;
    border-color: #a55eea;
    background: rgba(165, 94, 234, 0.08);
}
.card-tag.tag-investigation {
    color: #ffb142;
    border-color: #ffb142;
    background: rgba(255, 177, 66, 0.08);
}
.card-tag.tag-global {
    color: #2bcbba;
    border-color: #2bcbba;
    background: rgba(43, 203, 186, 0.08);
}
.card-tag.tag-industry {
    color: #45aaf2;
    border-color: #45aaf2;
    background: rgba(69, 170, 242, 0.08);
}
.card-tag.tag-enterprise {
    color: #00ff9d;
    border-color: #00ff9d;
    background: rgba(0, 255, 157, 0.08);
}
.card-tag.tag-tooling {
    color: #ffd166;
    border-color: #ffd166;
    background: rgba(255, 209, 102, 0.08);
}

/* ==========================================================================
   Sidebar Collapse & Expand System
   ========================================================================== */

.app-container {
    transition: grid-template-columns 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.briefings-sidebar, .intelligence-right {
    transition: opacity 0.2s ease, width 0.3s ease, padding 0.3s ease;
}

.app-container.collapsed-left {
    grid-template-columns: 0px 1fr 340px;
}
.app-container.collapsed-left .briefings-sidebar {
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    padding: 0 !important;
    border-right: none;
}

.app-container.collapsed-right {
    grid-template-columns: max-content 1fr 0px;
}
.app-container.collapsed-right .intelligence-right {
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    padding: 0 !important;
    border-left: none;
}

.app-container.collapsed-left.collapsed-right {
    grid-template-columns: 0px 1fr 0px;
}

/* Sidebar Toggle Buttons */
.sidebar-toggle-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 157, 0.2);
    color: var(--text-muted);
    border-radius: 6px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.sidebar-toggle-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(0, 255, 157, 0.05);
    box-shadow: 0 0 8px rgba(0, 255, 157, 0.1);
}

/* Floating Expand Tabs */
.floating-expand-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 18, 28, 0.95);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    width: 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 150;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.floating-expand-btn.left {
    left: 0;
    border-left: none;
    border-radius: 0 8px 8px 0;
}

.floating-expand-btn.right {
    right: 0;
    border-right: none;
    border-radius: 8px 0 0 8px;
}

.floating-expand-btn:hover {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.3);
}

/* Discovery Section CVE Timeframe Dropdown */
.discovery-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.discovery-section-header h4 {
    margin-bottom: 0 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.cve-timeframe-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cve-timeframe-selector select {
    background: rgba(15, 18, 28, 0.9);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cve-timeframe-selector select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 255, 157, 0.1);
}

/* ==========================================================================
   X / Twitter Intel Feed
   ========================================================================== */

.x-tab-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1rem;
}

.x-tab {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 157, 0.15);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    font-weight: 600;
    transition: all 0.2s ease;
}

.x-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.x-tab.active {
    background: rgba(0, 255, 157, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 255, 157, 0.2);
}

.x-feed-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.x-tweet-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: background 0.15s ease;
    border-radius: 6px;
    padding-left: 6px;
    padding-right: 6px;
}

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

.x-tweet-item:hover {
    background: rgba(0, 255, 157, 0.03);
}

.x-tweet-header {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 4px;
}

.x-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: #000;
    background: var(--primary-color);
}

.x-handle {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.x-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    opacity: 0.6;
    flex-shrink: 0;
}

.x-text {
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.x-text .x-hashtag {
    color: var(--secondary-color);
}

.x-meta {
    display: flex;
    gap: 12px;
    margin-top: 5px;
}

.x-meta span {
    font-size: 0.65rem;
    color: var(--text-muted);
    opacity: 0.5;
    display: flex;
    align-items: center;
    gap: 3px;
    font-family: var(--font-mono);
}

.x-feed-error {
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 10px 6px;
    line-height: 1.5;
    opacity: 0.7;
}

.x-feed-error a {
    color: var(--secondary-color);
    text-decoration: none;
}

.x-feed-error a:hover {
    text-decoration: underline;
}
/* ==========================================================================
   CVE Results Table (Discovery / Search)
   ========================================================================== */

.cve-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.cve-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.cve-table thead th {
    text-align: left;
    padding: 10px 14px;
    background: rgba(0, 255, 157, 0.05);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.cve-table tbody tr {
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cve-table tbody tr:last-child {
    border-bottom: none;
}

.cve-table tbody tr:hover {
    background: rgba(0, 255, 157, 0.04);
}

.cve-table td {
    padding: 10px 14px;
    vertical-align: top;
    color: var(--text-main);
}

.cve-table-id a {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    white-space: nowrap;
}

.cve-table-id a:hover {
    text-decoration: underline;
}

.cve-table-desc {
    color: var(--text-muted);
    line-height: 1.5;
    min-width: 240px;
}

.cve-table-date {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.severity-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 800;
    font-family: var(--font-mono);
    white-space: nowrap;
    text-align: center;
}

.severity-badge.sev-critical {
    background: #ff4757;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.4);
}

.severity-badge.sev-high {
    background: #ffa502;
    color: #1a1a1a;
}

.severity-badge.sev-medium {
    background: #eccc68;
    color: #1a1a1a;
}

.severity-badge.sev-low {
    background: #2ed573;
    color: #1a1a1a;
}

.severity-badge.sev-unknown {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .cve-table-desc {
        min-width: 160px;
        font-size: 0.78rem;
    }
    .cve-table thead th,
    .cve-table td {
        padding: 8px 8px;
    }
}
