/**
 * CyberSec Academy - Cyber Dashboard
 * Glassmorphism panels with neon accents for live threat data
 */

/* =====================================================
   LIVE THREAT RADAR
   ===================================================== */
.live-threat-section {
    margin-bottom: 3rem;
}

.live-threat-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 1200px) {
    .live-threat-container {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Radar - Glass container */
.threat-radar-enhanced {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto;
}

.radar-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.06) 0%, transparent 70%);
    border: 2px solid rgba(0, 255, 136, 0.15);
    overflow: hidden;
    box-shadow:
        0 0 30px rgba(0, 255, 136, 0.05),
        inset 0 0 40px rgba(0, 255, 136, 0.03);
}

.radar-grid {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.radar-ring {
    position: absolute;
    border: 1px solid rgba(0, 255, 136, 0.12);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radar-ring:nth-child(1) { width: 25%; height: 25%; }
.radar-ring:nth-child(2) { width: 50%; height: 50%; }
.radar-ring:nth-child(3) { width: 75%; height: 75%; }
.radar-ring:nth-child(4) { width: 100%; height: 100%; }

.radar-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radar-crosshair::before,
.radar-crosshair::after {
    content: '';
    position: absolute;
    background: rgba(0, 255, 136, 0.12);
}

.radar-crosshair::before {
    width: 1px;
    height: 350px;
    top: -175px;
    left: 0;
}

.radar-crosshair::after {
    width: 350px;
    height: 1px;
    left: -175px;
    top: 0;
}

/* Neon sweep */
.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 2px;
    transform-origin: left center;
    background: linear-gradient(90deg, var(--primary), transparent);
    animation: radarSweep 4s linear infinite;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.radar-sweep::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.2), transparent);
    transform-origin: left center;
    clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

@keyframes radarSweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Center icon - Glass */
.radar-center-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    box-shadow:
        0 0 20px rgba(0, 255, 136, 0.15),
        inset 0 0 15px rgba(0, 255, 136, 0.05);
    z-index: 10;
}

/* Threat Blips - Neon glow */
.threat-blip {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

.threat-blip::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    animation: blipPulse 2s ease-in-out infinite;
}

.threat-blip.critical {
    background: var(--danger);
    box-shadow: 0 0 12px var(--danger), 0 0 24px rgba(239, 68, 68, 0.3);
}

.threat-blip.critical::before {
    border: 2px solid var(--danger);
}

.threat-blip.warning {
    background: var(--warning);
    box-shadow: 0 0 12px var(--warning), 0 0 24px rgba(245, 158, 11, 0.3);
}

.threat-blip.warning::before {
    border: 2px solid var(--warning);
}

.threat-blip.info {
    background: var(--info, #3b82f6);
    box-shadow: 0 0 12px var(--info, #3b82f6), 0 0 24px rgba(59, 130, 246, 0.3);
}

.threat-blip.info::before {
    border: 2px solid var(--info, #3b82f6);
}

.threat-blip:hover {
    transform: translate(-50%, -50%) scale(1.5);
    z-index: 20;
}

@keyframes blipPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

/* Threat Tooltip - Glass */
.threat-tooltip {
    position: absolute;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.06));
    border-radius: var(--radius-sm, 8px);
    padding: 0.75rem;
    min-width: 200px;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.threat-blip:hover .threat-tooltip {
    opacity: 1;
}

.threat-tooltip-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.threat-tooltip-type {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* =====================================================
   THREAT FEED PANEL - Glass
   ===================================================== */
.threat-feed-panel {
    background: linear-gradient(
        135deg,
        rgba(18, 18, 26, 0.6) 0%,
        rgba(18, 18, 26, 0.3) 100%
    );
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.06));
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    max-height: 400px;
    position: relative;
}

/* Frost overlay */
.threat-feed-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glass, linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 50%));
    pointer-events: none;
    z-index: 0;
}

.threat-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(0, 255, 136, 0.04);
    border-bottom: 1px solid var(--glass-border, rgba(255, 255, 255, 0.06));
    position: relative;
    z-index: 1;
}

.threat-feed-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--primary);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.threat-feed-list {
    overflow-y: auto;
    max-height: 340px;
    position: relative;
    z-index: 1;
}

.threat-feed-list::-webkit-scrollbar {
    width: 4px;
}

.threat-feed-list::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.15);
    border-radius: 2px;
}

.threat-feed-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.2s;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.threat-feed-item:hover {
    background: rgba(0, 255, 136, 0.04);
}

.threat-feed-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.threat-feed-icon.critical {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.15);
}

.threat-feed-icon.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.15);
}

.threat-feed-icon.info {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info, #3b82f6);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.15);
}

.threat-feed-content {
    flex: 1;
    min-width: 0;
}

.threat-feed-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.threat-feed-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.threat-feed-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* =====================================================
   GLOBAL ATTACK MAP - Glass Container
   ===================================================== */
.global-attack-section {
    margin-bottom: 3rem;
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.section-title i {
    color: var(--primary);
    filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.4));
}

.attack-map-container {
    background: linear-gradient(
        135deg,
        rgba(18, 18, 26, 0.6) 0%,
        rgba(18, 18, 26, 0.3) 100%
    );
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.06));
    border-radius: var(--radius-lg, 16px);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Frost overlay */
.attack-map-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glass, linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 50%));
    pointer-events: none;
}

.world-map-svg {
    width: 100%;
    height: 400px;
    position: relative;
}

.world-map-bg {
    fill: rgba(0, 255, 136, 0.06);
    stroke: rgba(0, 255, 136, 0.25);
    stroke-width: 0.3;
    filter: drop-shadow(0 0 3px rgba(0, 255, 136, 0.2));
}

/* Attack Lines - Neon animated */
.attack-line {
    stroke: var(--danger);
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 10, 5;
    animation: attackFlow 2s linear infinite;
    opacity: 0.7;
    filter: drop-shadow(0 0 3px var(--danger));
}

@keyframes attackFlow {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -30; }
}

/* Attack Points - Neon glow */
.attack-origin,
.attack-target {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.attack-origin {
    background: var(--danger);
    box-shadow: 0 0 15px var(--danger), 0 0 30px rgba(239, 68, 68, 0.3);
}

.attack-target {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary), 0 0 30px rgba(0, 255, 136, 0.3);
}

.attack-origin::after,
.attack-target::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid currentColor;
    animation: pointPulse 1.5s ease-out infinite;
}

.attack-origin::after { border-color: var(--danger); }
.attack-target::after { border-color: var(--primary); }

@keyframes pointPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

/* Map Stats Bar - Glass */
.map-stats-bar {
    display: flex;
    justify-content: space-around;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border, rgba(255, 255, 255, 0.06));
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.map-stat {
    text-align: center;
}

.map-stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.map-stat-value.danger {
    color: var(--danger);
    text-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.map-stat-value.warning {
    color: var(--warning);
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.map-stat-value.success {
    color: var(--primary);
    text-shadow: var(--neon-green-text, 0 0 20px rgba(0, 255, 136, 0.4));
}

.map-stat-value.info {
    color: var(--info, #3b82f6);
    text-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

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

/* =====================================================
   LIVE SECURITY STATS - Glass Cards
   ===================================================== */
.live-stats-section {
    margin-bottom: 3rem;
}

.live-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.live-stat-card {
    background: linear-gradient(
        135deg,
        rgba(18, 18, 26, 0.6) 0%,
        rgba(18, 18, 26, 0.3) 100%
    );
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.06));
    border-radius: var(--radius-lg, 16px);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}

/* Frost overlay */
.live-stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glass, linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 50%));
    pointer-events: none;
}

.live-stat-card:hover {
    border-color: rgba(0, 255, 136, 0.15);
    transform: translateY(-4px);
    box-shadow: var(--neon-green-sm, 0 0 15px rgba(0, 255, 136, 0.08));
}

/* Neon left accent line */
.live-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    border-radius: 0 2px 2px 0;
    z-index: 1;
}

.live-stat-card.attacks::before {
    background: var(--danger);
    box-shadow: 0 0 8px var(--danger);
}

.live-stat-card.blocked::before {
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.live-stat-card.users::before {
    background: var(--info, #3b82f6);
    box-shadow: 0 0 8px var(--info, #3b82f6);
}

.live-stat-card.uptime::before {
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.stat-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm, 8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.live-stat-card.attacks .stat-card-icon {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.1);
}

.live-stat-card.blocked .stat-card-icon {
    background: rgba(0, 255, 136, 0.15);
    color: var(--primary);
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.1);
}

.live-stat-card.users .stat-card-icon {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info, #3b82f6);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.1);
}

.live-stat-card.uptime .stat-card-icon {
    background: rgba(0, 255, 136, 0.15);
    color: var(--primary);
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.1);
}

.stat-change {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.stat-change.up {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.stat-change.down {
    background: rgba(0, 255, 136, 0.15);
    color: var(--primary);
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-mono);
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 1;
}

.stat-card-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* Counter Animation */
.counter-animate {
    transition: all 0.3s ease;
}

/* =====================================================
   QUICK ACTIONS - Glass Cards
   ===================================================== */
.quick-actions-section {
    margin-bottom: 3rem;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.quick-action-card {
    background: linear-gradient(
        135deg,
        rgba(18, 18, 26, 0.5) 0%,
        rgba(18, 18, 26, 0.25) 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.06));
    border-radius: var(--radius-lg, 16px);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
    position: relative;
    overflow: hidden;
}

/* Neon glow overlay on hover */
.quick-action-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 255, 136, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.quick-action-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 136, 0.2);
    box-shadow: var(--neon-green-sm, 0 0 15px rgba(0, 255, 136, 0.08));
}

.quick-action-card:hover::before {
    opacity: 1;
}

.quick-action-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.quick-action-card:hover .quick-action-icon {
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
    background: rgba(0, 255, 136, 0.12);
}

.quick-action-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 1;
}

.quick-action-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* Notification Badge - Neon */
.action-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
    z-index: 1;
}

/* =====================================================
   CYBER NEWS FEED - Glass Cards
   ===================================================== */
.cyber-news-section {
    margin-bottom: 3rem;
}

.news-feed-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: linear-gradient(
        135deg,
        rgba(18, 18, 26, 0.6) 0%,
        rgba(18, 18, 26, 0.3) 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.06));
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    transition: all 0.3s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
    cursor: pointer;
    position: relative;
}

.news-card:hover {
    border-color: rgba(0, 255, 136, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--neon-green-sm, 0 0 15px rgba(0, 255, 136, 0.08));
}

.news-card:active {
    transform: scale(0.98);
}

.news-image {
    height: 150px;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 15, 0.8) 0%,
        rgba(18, 18, 26, 0.6) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
    position: relative;
}

.news-category {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(0, 255, 136, 0.9);
    color: var(--dark, #0a0a0f);
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.news-content {
    padding: 1.25rem;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.news-source {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* =====================================================
   SECURITY SCORE WIDGET - Glass
   ===================================================== */
.security-score-widget {
    background: linear-gradient(
        135deg,
        rgba(18, 18, 26, 0.6) 0%,
        rgba(18, 18, 26, 0.3) 100%
    );
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.06));
    border-radius: var(--radius-lg, 16px);
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Frost overlay */
.security-score-widget::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glass, linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 50%));
    pointer-events: none;
}

.score-circle {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 1;
}

.score-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 10;
}

.score-circle-progress {
    fill: none;
    stroke: var(--primary);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 408;
    stroke-dashoffset: 408;
    transition: stroke-dashoffset 1s var(--ease-out-expo, ease);
    filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.4));
}

.score-circle-progress.critical {
    stroke: var(--danger);
    filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.4));
}

.score-circle-progress.warning {
    stroke: var(--warning);
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.4));
}

.score-circle-progress.good {
    stroke: var(--primary);
    filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.4));
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    text-shadow: var(--neon-green-text, 0 0 20px rgba(0, 255, 136, 0.4));
}

.score-label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.score-tips {
    text-align: left;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border, rgba(255, 255, 255, 0.06));
    position: relative;
    z-index: 1;
}

.score-tip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.score-tip i {
    color: var(--warning);
    filter: drop-shadow(0 0 3px rgba(245, 158, 11, 0.3));
}

/* =====================================================
   TYPING EFFECT
   ===================================================== */
.typing-text {
    display: inline-block;
    overflow: hidden;
    border-right: 2px solid var(--primary);
    white-space: nowrap;
    animation: typing 3s steps(40, end), blinkCaret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blinkCaret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary); }
}

/* =====================================================
   MATRIX RAIN EFFECT
   ===================================================== */
.matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.04;
}

/* =====================================================
   SKELETON LOADING - Glass
   ===================================================== */
.news-card.skeleton {
    pointer-events: none;
}

.news-card.skeleton .news-image {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-bg {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-line {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

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

/* Empty State */
.news-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-muted);
    text-align: center;
}

.news-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.news-empty p {
    font-size: 1rem;
}

/* =====================================================
   NEWS MODAL - Glass
   ===================================================== */
.news-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px) saturate(0.5);
    -webkit-backdrop-filter: blur(12px) saturate(0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.2s ease;
}

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

.news-modal {
    background: linear-gradient(
        135deg,
        rgba(18, 18, 26, 0.9) 0%,
        rgba(10, 10, 15, 0.85) 100%
    );
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl, 20px);
    width: 100%;
    max-width: 700px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.6),
        0 0 1px rgba(0, 255, 136, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    animation: slideUp 0.3s var(--ease-out-expo, ease);
    position: relative;
}

/* Neon top accent */
.news-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary, #0ea5e9));
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
    z-index: 1;
}

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

.news-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--glass-border, rgba(255, 255, 255, 0.06));
}

.news-modal-header .news-category {
    background: rgba(0, 255, 136, 0.15);
    color: var(--primary);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.news-modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.06));
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm, 8px);
    transition: all 0.2s ease;
}

.news-modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.news-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

.news-modal-body::-webkit-scrollbar {
    width: 4px;
}

.news-modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.15);
    border-radius: 2px;
}

.news-modal-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border, rgba(255, 255, 255, 0.06));
}

.news-modal-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.news-modal-meta i {
    color: var(--primary);
    filter: drop-shadow(0 0 3px rgba(0, 255, 136, 0.3));
}

.news-modal-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.news-modal-content p {
    margin-bottom: 1rem;
}

.news-source-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.15);
    border-radius: var(--radius-sm, 8px);
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.news-source-link:hover {
    background: rgba(0, 255, 136, 0.15);
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: var(--neon-green-sm, 0 0 15px rgba(0, 255, 136, 0.08));
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .live-threat-container {
        grid-template-columns: 1fr;
    }

    .threat-radar-enhanced {
        width: 280px;
        height: 280px;
    }

    .attack-map-container {
        padding: 1rem;
    }

    .world-map-svg {
        height: 250px;
    }

    .map-stats-bar {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .map-stat {
        flex: 1 1 40%;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-header {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .live-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .live-stat-card {
        padding: 1rem;
    }

    .stat-card-value {
        font-size: 1.5rem;
    }

    .cyber-news-grid {
        grid-template-columns: 1fr;
    }

    .news-modal-overlay {
        padding: 1rem;
    }

    .news-modal {
        max-height: 90vh;
    }

    .news-modal-body h2 {
        font-size: 1.25rem;
    }

    .news-modal-meta {
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .live-threat-section,
    .live-stats-section,
    .global-attack-section,
    .cyber-news-section,
    .quick-actions-section {
        margin-bottom: 1.5rem;
    }

    .threat-radar-enhanced {
        width: 240px;
        height: 240px;
    }

    .world-map-svg {
        height: 200px;
    }

    .map-stats-bar {
        gap: 0.5rem;
    }

    .map-stat {
        flex: 1 1 100%;
        text-align: center;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .quick-action-card {
        padding: 1rem;
    }

    .live-stats-grid {
        grid-template-columns: 1fr;
    }
}

@supports not (backdrop-filter: blur(1px)) {
    .threat-radar-container { background: rgba(18, 18, 26, 0.95); }
    .threat-feed-panel { background: rgba(18, 18, 26, 0.95); }
    .live-stat-card { background: rgba(18, 18, 26, 0.95); }
    .quick-action-card { background: rgba(18, 18, 26, 0.95); }
    .news-card { background: rgba(18, 18, 26, 0.95); }
    .news-modal-content { background: rgba(15, 15, 22, 0.98); }
}
