* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00d4ff;
    --secondary-color: #0066cc;
    --accent-color: #ff6b35;
    --dark-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-light: #ffffff;
    --text-gray: #b0b0b0;
    --gradient-primary: linear-gradient(135deg, #00d4ff, #0066cc);
    --gradient-dark: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Arial', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-brand i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-gray);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Network Animation */
.network-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.node:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.node:nth-child(2) { top: 70%; right: 15%; animation-delay: 0.5s; }
.node:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 1s; }

.connection {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: flow 3s infinite;
}

.connection:nth-child(4) {
    top: 25%;
    left: 10%;
    width: 200px;
    transform: rotate(45deg);
}

.connection:nth-child(5) {
    bottom: 35%;
    right: 20%;
    width: 150px;
    transform: rotate(-30deg);
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes flow {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--card-bg);
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--gradient-dark);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.service-card.developing {
    position: relative;
    overflow: hidden;
}

.development-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--accent-color);
    color: white;
    padding: 5px 40px;
    font-size: 0.8rem;
    transform: rotate(45deg);
    font-weight: bold;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.service-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-card li {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 20px;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: var(--accent-color);
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--dark-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.about p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-gray);
    margin: 0;
}

.network-diagram {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.central-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.outer-nodes {
    position: relative;
    width: 100%;
    height: 100%;
}

.outer-node {
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--secondary-color);
    border-radius: 50%;
    animation: orbit 10s linear infinite;
}

.outer-node:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.outer-node:nth-child(2) { right: 0; top: 50%; transform: translateY(-50%); animation-delay: 2.5s; }
.outer-node:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: 5s; }
.outer-node:nth-child(4) { left: 0; top: 50%; transform: translateY(-50%); animation-delay: 7.5s; }

@keyframes orbit {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--card-bg);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.contact-info p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-link i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.contact-link:hover {
    color: var(--accent-color);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    padding: 50px 0 20px;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
}

/* Threat Intelligence Page Styles */
.threats-page {
    padding-top: 100px;
    padding-bottom: 50px;
    background: var(--dark-bg);
    min-height: 100vh;
}

.threats-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--primary-color);
}

.threats-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.threats-header h1 i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.subtitle {
    color: var(--text-gray);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.data-freshness {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.data-freshness i {
    color: var(--primary-color);
}

.update-frequency {
    opacity: 0.7;
}

.threat-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.control-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.control-group label {
    color: var(--text-light);
    font-weight: bold;
}

.threat-select {
    background: var(--dark-bg);
    color: var(--text-light);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.threat-select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.threat-map-container {
    position: relative;
    margin-bottom: 3rem;
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

#threat-map {
    height: 500px;
    width: 100%;
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

.map-legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(26, 26, 26, 0.9);
    padding: 1rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.map-legend h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.legend-scale {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-color.low { background: #00ff88; }
.legend-color.medium { background: #00d4ff; }
.legend-color.high { background: #ff6b35; }
.legend-color.critical { background: #ff0000; }

.threat-stats {
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--gradient-dark);
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary-color);
    min-width: 50px;
}

.stat-content h3 {
    color: var(--text-light);
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.stat-content p {
    color: var(--text-gray);
    margin: 0;
    font-size: 0.9rem;
}

.data-sources-section,
.threat-analysis-section {
    margin-bottom: 3rem;
}

.data-sources-section h2,
.threat-analysis-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--gradient-dark);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.info-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.info-card h3 i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.info-card p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.info-card ul {
    color: var(--text-gray);
    padding-left: 1.5rem;
}

.info-card li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.info-card strong {
    color: var(--text-light);
}

.info-card a {
    color: var(--primary-color);
    text-decoration: none;
}

.info-card a:hover {
    color: var(--accent-color);
}

.analysis-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.analysis-card {
    background: var(--gradient-dark);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.analysis-card.recommendations {
    grid-column: 1 / -1;
}

.analysis-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.analysis-card h3 i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.loading-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-style: italic;
}

.loading-indicator i {
    color: var(--primary-color);
}

.threat-summary-content,
.geo-trends-content {
    color: var(--text-gray);
}

.summary-intro,
.trends-intro {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.threat-list,
.country-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.threat-summary-item,
.country-trend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.threat-rank,
.country-rank {
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.threat-details,
.country-details {
    flex: 1;
}

.threat-name,
.country-name {
    color: var(--text-light);
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.threat-stats,
.country-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.threat-count,
.country-count {
    color: var(--primary-color);
    font-weight: bold;
}

.threat-percentage,
.country-percentage {
    color: var(--text-gray);
}

.intensity-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.intensity-badge.low {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.intensity-badge.medium {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
}

.intensity-badge.high {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
}

.intensity-badge.critical {
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
}

.trends-note {
    margin-top: 1.5rem;
    font-style: italic;
    opacity: 0.8;
}

.recommendations-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 10px;
    border-left: 3px solid var(--success-color);
}

.recommendation-item i {
    font-size: 1.5rem;
    color: var(--success-color);
    margin-top: 0.2rem;
}

.recommendation-item h4 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.recommendation-item p {
    color: var(--text-gray);
    margin: 0;
    line-height: 1.6;
}

/* Threat popup styles */
.threat-popup {
    min-width: 200px;
}

.threat-popup h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.threat-breakdown {
    margin-top: 1rem;
}

.threat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.threat-type {
    color: var(--text-gray);
}

.threat-count {
    color: var(--primary-color);
    font-weight: bold;
}

/* Active navigation link */
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    width: 100%;
}

/* Analytics Page Specific Styles */
.section-container {
    background: rgba(45, 55, 72, 0.8);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    color: #00ff88;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.section-subtitle {
    color: #a0aec0;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Blocklist Grid */
.blocklist-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.content-card {
    background: rgba(26, 32, 44, 0.9);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-2px);
    border-color: #00ff88;
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

.card-title h3 {
    color: #ffffff;
    margin: 0;
    font-size: 1.2rem;
}

.card-badge {
    background: #00ff88;
    color: #1a202c;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-content {
    margin-bottom: 1.5rem;
}

.card-description {
    color: #a0aec0;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.card-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #00ff88;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #a0aec0;
    margin-top: 0.25rem;
}

.card-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: #00ff88;
    color: #1a202c;
}

.btn-primary:hover {
    background: #00d4ff;
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #00ff88;
}

/* Analytics Grid */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.analytics-card {
    background: rgba(26, 32, 44, 0.9);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.analytics-card:hover {
    transform: translateY(-2px);
    border-color: #00ff88;
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.2);
}

.analytics-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.analytics-header h3 {
    color: #ffffff;
    margin: 0;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.analytics-badge {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Content areas - flexible and scrollable */
.analytics-card > div:not(.analytics-header) {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Intelligence Grid */
.intelligence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.intelligence-card {
    background: rgba(26, 32, 44, 0.9);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.intelligence-card:hover {
    transform: translateY(-2px);
    border-color: #00ff88;
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.2);
}

.intelligence-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.intelligence-header h3 {
    color: #ffffff;
    margin: 0;
    font-size: 1.1rem;
}

.intelligence-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.intelligence-badge.critical {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.intelligence-badge.trend {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
}

.intelligence-badge.success {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    word-wrap: break-word;
}

.metric-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #00ff88;
}

.metric-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00ff88;
    line-height: 1;
    white-space: nowrap;
}

.metric-label {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.metric-note {
    font-size: 0.75rem;
    color: #a0aec0;
    line-height: 1.2;
    word-wrap: break-word;
    white-space: normal;
}

/* Card utilities */
.card-header-simple {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header-simple p {
    color: #a0aec0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #a0aec0;
    font-size: 0.9rem;
}

.card-summary {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 8px;
    border-left: 4px solid #00ff88;
}

.card-summary p {
    margin: 0;
    color: #ffffff;
    display: block;
    font-size: 0.9rem;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: normal;
}

.card-summary i {
    color: #00ff88;
    margin-right: 0.5rem;
    float: left;
    margin-top: 0.1rem;
}

/* Country Tooltip Styles */
.country-tooltip {
    position: fixed !important;
    background: rgba(26, 32, 44, 0.98) !important;
    border: 2px solid #00ff88 !important;
    border-radius: 8px;
    padding: 1rem;
    color: #ffffff !important;
    font-size: 0.9rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(10px);
    z-index: 10000 !important;
    max-width: 300px;
    min-width: 200px;
    pointer-events: none !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    max-height: 400px;
    overflow-y: auto;
}

.country-tooltip[style*="block"] {
    opacity: 1 !important;
}

.tooltip-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}

.tooltip-header h4 {
    margin: 0;
    color: #00ff88;
    font-size: 1.1rem;
    font-weight: 600;
}

.total-threats {
    margin-top: 0.25rem;
    color: #a0aec0;
    font-size: 0.85rem;
}

.threat-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.threat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
}

.threat-type {
    color: #ffffff;
    font-weight: 500;
    flex: 1;
}

.threat-count {
    color: #00ff88;
    font-weight: 600;
    margin-left: 0.5rem;
}

.intensity-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 0.5rem;
    min-width: 45px;
    text-align: center;
}

.intensity-badge.low {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.intensity-badge.medium {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
}

.intensity-badge.high {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
}

.intensity-badge.critical {
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
}

/* GitHub Button */
.github-button {
    background: rgba(33, 37, 41, 0.9);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.github-button:hover {
    background: rgba(33, 37, 41, 1);
    border-color: #00ff88;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .analytics-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 1200px) {
    .analytics-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.75rem;
    }
    
    .metric-card {
        padding: 0.75rem;
        min-height: 100px;
    }
}

@media (max-width: 768px) {
    .section-container {
        padding: 1rem;
    }
    
    .blocklist-cards-container,
    .analytics-grid,
    .intelligence-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-card {
        min-height: auto;
        padding: 1rem;
    }
    
    .metric-card {
        padding: 1rem;
        min-height: auto;
        text-align: left;
    }
    
    .metric-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .card-summary {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .analytics-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .analytics-badge {
        align-self: flex-start;
    }
}
.threat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
}

.threat-type {
    color: #ffffff;
    font-weight: 500;
    flex: 1;
}

.threat-count {
    color: #00ff88;
    font-weight: 600;
    margin-left: 0.5rem;
}

.intensity-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 0.5rem;
    min-width: 45px;
    text-align: center;
}

.intensity-badge.low {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.intensity-badge.medium {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
}

.intensity-badge.high {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
}

.intensity-badge.critical {
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
}

.filtered-threat {
    margin-top: 0.5rem;
}

.no-threats {
    color: #a0aec0;
    font-style: italic;
    text-align: center;
    padding: 0.5rem;
}

/* Ensure tooltip appears above map elements */
.leaflet-popup-pane,
.leaflet-tooltip-pane {
    z-index: 999;
}

.country-tooltip {
    z-index: 1001 !important;
}
