/* DmApp AI Antivirus Agent Styles */

.av-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Shield Animation */
.av-shield-wrap {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    position: relative;
}

.av-shield {
    width: 120px;
    height: 140px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.av-shield:hover { transform: scale(1.05); }

.av-shield-icon {
    font-size: 80px;
    filter: drop-shadow(0 0 20px rgba(0,255,0,0.4));
    z-index: 2;
}

.av-shield.scanning .av-shield-icon {
    animation: av-pulse 1.2s ease-in-out infinite;
}

.av-shield-ring {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 3px solid rgba(0,255,0,0.2);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.av-shield.scanning .av-shield-ring {
    animation: av-ring-pulse 1.5s ease-out infinite;
}

.av-shield-ring-2 {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 2px solid rgba(0,255,0,0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.av-shield.scanning .av-shield-ring-2 {
    animation: av-ring-pulse 1.5s ease-out infinite 0.3s;
}

@keyframes av-pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(0,255,0,0.4)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 35px rgba(0,255,0,0.7)); }
}

@keyframes av-ring-pulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; border-color: rgba(0,255,0,0.5); }
    100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; border-color: rgba(0,255,0,0); }
}

/* Status Badge */
.av-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.av-status-badge.protected {
    background: rgba(0,255,0,0.1);
    color: #00ff00;
}

.av-status-badge.scanning {
    background: rgba(0,150,255,0.1);
    color: #0096ff;
}

.av-status-badge.threat {
    background: rgba(255,50,50,0.1);
    color: #ff3232;
}

.av-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    animation: av-dot-blink 1.5s ease infinite;
}

@keyframes av-dot-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Quick Scan Button */
.av-scan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 12px;
}

.av-scan-btn.primary {
    background: linear-gradient(135deg, #00ff00, #00cc00);
    color: #000;
}

.av-scan-btn.primary:hover {
    box-shadow: 0 4px 20px rgba(0,255,0,0.4);
    transform: translateY(-1px);
}

.av-scan-btn.secondary {
    background: rgba(0,255,0,0.08);
    color: #00ff00;
    border: 1px solid rgba(0,255,0,0.2);
}

.av-scan-btn.danger {
    background: rgba(255,50,50,0.08);
    color: #ff3232;
    border: 1px solid rgba(255,50,50,0.2);
}

.av-scan-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Progress Bar */
.av-progress-wrap {
    display: none;
    margin: 16px 0;
}

.av-progress-wrap.active { display: block; }

.av-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.av-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00ff00, #00cc00);
    border-radius: 3px;
    transition: width 0.3s;
}

.av-progress-fill.threat {
    background: linear-gradient(90deg, #ff3232, #ff5555);
}

.av-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #888;
}

/* Scan Log */
.av-scan-log {
    max-height: 180px;
    overflow-y: auto;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 12px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    margin: 12px 0;
    display: none;
    border: 1px solid rgba(0,255,0,0.08);
}

.av-scan-log.active { display: block; }

.av-log-line {
    padding: 3px 0;
    color: #00ff00;
    opacity: 0;
    animation: av-log-in 0.3s forwards;
}

.av-log-line.threat { color: #ff3232; font-weight: 700; }
.av-log-line.warn { color: #ff9800; }
.av-log-line.info { color: #0096ff; }

@keyframes av-log-in {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Modules Grid */
.av-modules {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.av-module-card {
    background: rgba(0,255,0,0.04);
    border: 1px solid rgba(0,255,0,0.08);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
}

.av-module-card:hover {
    background: rgba(0,255,0,0.08);
    border-color: rgba(0,255,0,0.2);
}

.av-module-card.active {
    border-color: #00ff00;
    box-shadow: 0 0 12px rgba(0,255,0,0.12);
}

.av-module-icon { font-size: 24px; margin-bottom: 8px; }
.av-module-title { font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.av-module-desc { font-size: 10px; color: #888; line-height: 1.4; }

.av-module-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 20px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    cursor: pointer;
    transition: background 0.3s;
}

.av-module-toggle.on { background: #00ff00; }

.av-module-toggle::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.av-module-toggle.on::after { transform: translateX(16px); }

/* Threat Card */
.av-threat-card {
    background: rgba(255,50,50,0.06);
    border: 1px solid rgba(255,50,50,0.15);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.av-threat-icon { font-size: 28px; flex-shrink: 0; }
.av-threat-name { font-size: 13px; font-weight: 700; color: #ff3232; }
.av-threat-type { font-size: 10px; color: #ff9800; margin: 2px 0; }
.av-threat-path { font-size: 10px; color: #888; font-family: monospace; }
.av-threat-actions { display: flex; gap: 6px; margin-top: 8px; }

.av-threat-btn {
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.av-threat-btn.remove {
    background: rgba(255,50,50,0.15);
    color: #ff3232;
}

.av-threat-btn.quarantine {
    background: rgba(255,152,0,0.15);
    color: #ff9800;
}

/* Schedule Section */
.av-schedule-card {
    background: rgba(0,255,0,0.04);
    border: 1px solid rgba(0,255,0,0.08);
    border-radius: 14px;
    padding: 16px;
    margin: 12px 0;
}

.av-schedule-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.av-schedule-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.av-schedule-opt {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(0,255,0,0.15);
    background: rgba(0,255,0,0.04);
    color: #ccc;
    transition: all 0.25s;
}

.av-schedule-opt.selected {
    background: #00ff00;
    color: #000;
    border-color: #00ff00;
}

.av-schedule-opt:hover:not(.selected) {
    background: rgba(0,255,0,0.1);
    color: #00ff00;
}

/* Data Monitor */
.av-data-monitor {
    background: rgba(0,150,255,0.04);
    border: 1px solid rgba(0,150,255,0.1);
    border-radius: 14px;
    padding: 16px;
    margin: 12px 0;
}

.av-data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.av-data-row:last-child { border-bottom: none; }

.av-data-label { font-size: 12px; color: #888; }
.av-data-value { font-size: 12px; font-weight: 700; font-family: monospace; }
.av-data-value.normal { color: #00ff00; }
.av-data-value.warning { color: #ff9800; }
.av-data-value.danger { color: #ff3232; }

/* Real-time Monitor Bar */
.av-realtime-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(0,255,0,0.04);
    border: 1px solid rgba(0,255,0,0.08);
    border-radius: 10px;
    margin: 12px 0;
    font-size: 11px;
}

.av-realtime-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff00;
    animation: av-dot-blink 1s ease infinite;
}

/* Notification Card */
.av-notif-card {
    background: rgba(0,255,0,0.04);
    border-left: 3px solid #00ff00;
    border-radius: 0 10px 10px 0;
    padding: 12px 14px;
    margin: 8px 0;
    font-size: 12px;
}

.av-notif-card.warn { border-left-color: #ff9800; background: rgba(255,152,0,0.04); }
.av-notif-card.danger { border-left-color: #ff3232; background: rgba(255,50,50,0.04); }
.av-notif-time { font-size: 10px; color: #666; margin-top: 4px; }

/* Section Headers */
.av-section-header {
    font-size: 14px;
    font-weight: 700;
    color: #00ff00;
    margin: 20px 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Stats Grid */
.av-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 12px 0;
}

.av-stat-card {
    background: rgba(0,255,0,0.04);
    border: 1px solid rgba(0,255,0,0.06);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.av-stat-value { font-size: 22px; font-weight: 800; color: #00ff00; }
.av-stat-label { font-size: 10px; color: #888; margin-top: 4px; }

/* Device Health Score */
.av-health-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0,255,0,0.03);
    border: 1px solid rgba(0,255,0,0.08);
    border-radius: 16px;
    padding: 20px;
    margin: 16px 0;
}

.av-health-ring {
    position: relative;
    width: 110px;
    height: 110px;
    flex-shrink: 0;
}

.av-health-ring svg {
    width: 110px;
    height: 110px;
    transform: rotate(-90deg);
}

.av-health-ring-bg {
    fill: none;
    stroke: rgba(255,255,255,0.06);
    stroke-width: 8;
}

.av-health-ring-fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.5s ease, stroke 0.5s;
}

.av-health-score {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.av-health-score-val {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.av-health-score-label {
    font-size: 9px;
    color: #888;
    margin-top: 2px;
}

.av-health-details {
    flex: 1;
}

.av-health-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 12px;
}

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

.av-health-item-status {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}

.av-health-item-status.good { background: rgba(0,255,0,0.1); color: #00ff00; }
.av-health-item-status.warn { background: rgba(255,152,0,0.1); color: #ff9800; }
.av-health-item-status.bad { background: rgba(255,50,50,0.1); color: #ff3232; }

/* Emergency Lockdown */
.av-emergency-wrap {
    margin: 16px 0;
}

.av-emergency-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px;
    border: 2px solid rgba(255,50,50,0.3);
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    background: rgba(255,50,50,0.06);
    color: #ff3232;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.av-emergency-btn:hover {
    background: rgba(255,50,50,0.12);
    border-color: rgba(255,50,50,0.5);
    box-shadow: 0 0 25px rgba(255,50,50,0.15);
}

.av-emergency-btn.active {
    background: linear-gradient(135deg, #ff3232, #cc0000);
    color: #fff;
    border-color: #ff3232;
    animation: av-emergency-pulse 1.2s ease infinite;
}

@keyframes av-emergency-pulse {
    0%, 100% { box-shadow: 0 0 15px rgba(255,50,50,0.3); }
    50% { box-shadow: 0 0 35px rgba(255,50,50,0.6); }
}

.av-emergency-status {
    font-size: 11px;
    color: #888;
    text-align: center;
    margin-top: 6px;
}

/* Quarantine Vault */
.av-vault-card {
    background: rgba(255,152,0,0.04);
    border: 1px solid rgba(255,152,0,0.12);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.av-vault-icon { font-size: 22px; }
.av-vault-info { flex: 1; }
.av-vault-name { font-size: 12px; font-weight: 700; color: #ff9800; }
.av-vault-meta { font-size: 10px; color: #888; margin-top: 2px; }

.av-vault-actions {
    display: flex;
    gap: 4px;
}

.av-vault-btn {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.av-vault-btn.delete { background: rgba(255,50,50,0.12); color: #ff3232; }
.av-vault-btn.restore { background: rgba(0,255,0,0.1); color: #00ff00; }

.av-vault-empty {
    text-align: center;
    padding: 24px;
    color: #555;
    font-size: 12px;
}

/* App Permissions Audit */
.av-perm-card {
    background: rgba(0,255,0,0.03);
    border: 1px solid rgba(0,255,0,0.06);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.av-perm-icon { font-size: 22px; }
.av-perm-info { flex: 1; }
.av-perm-app { font-size: 12px; font-weight: 700; }

.av-perm-list {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.av-perm-tag {
    font-size: 9px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 5px;
}

.av-perm-tag.safe { background: rgba(0,255,0,0.08); color: #00ff00; }
.av-perm-tag.risky { background: rgba(255,152,0,0.1); color: #ff9800; }
.av-perm-tag.danger { background: rgba(255,50,50,0.1); color: #ff3232; }

.av-perm-risk {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.av-perm-risk.low { background: rgba(0,255,0,0.1); color: #00ff00; }
.av-perm-risk.medium { background: rgba(255,152,0,0.1); color: #ff9800; }
.av-perm-risk.high { background: rgba(255,50,50,0.1); color: #ff3232; }

/* Threat Intel Feed */
.av-intel-card {
    background: rgba(0,150,255,0.04);
    border: 1px solid rgba(0,150,255,0.08);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.av-intel-card:hover { background: rgba(0,150,255,0.08); border-color: rgba(0,150,255,0.2); }

.av-intel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.av-intel-severity {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 5px;
}

.av-intel-severity.critical { background: rgba(255,50,50,0.15); color: #ff3232; }
.av-intel-severity.high { background: rgba(255,152,0,0.12); color: #ff9800; }
.av-intel-severity.medium { background: rgba(255,200,0,0.12); color: #ffc800; }

.av-intel-title { font-size: 12px; font-weight: 700; }
.av-intel-desc { font-size: 10px; color: #888; margin-top: 4px; line-height: 1.4; }
.av-intel-date { font-size: 9px; color: #555; margin-top: 6px; }

/* Scan History */
.av-history-card {
    background: rgba(0,255,0,0.03);
    border: 1px solid rgba(0,255,0,0.06);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.av-history-icon { font-size: 24px; }

.av-history-info { flex: 1; }
.av-history-type { font-size: 12px; font-weight: 700; }
.av-history-meta { font-size: 10px; color: #888; margin-top: 2px; }
.av-history-result {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
}
.av-history-result.clean { background: rgba(0,255,0,0.1); color: #00ff00; }
.av-history-result.found { background: rgba(255,50,50,0.1); color: #ff3232; }

/* Vulnerability Scanner */
.av-vuln-card {
    background: rgba(255,152,0,0.04);
    border: 1px solid rgba(255,152,0,0.1);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.av-vuln-icon { font-size: 20px; }
.av-vuln-info { flex: 1; }
.av-vuln-title { font-size: 12px; font-weight: 700; }
.av-vuln-desc { font-size: 10px; color: #888; margin-top: 2px; }
.av-vuln-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}
.av-vuln-badge.patched { background: rgba(0,255,0,0.1); color: #00ff00; }
.av-vuln-badge.unpatched { background: rgba(255,50,50,0.1); color: #ff3232; }
.av-vuln-badge.updating { background: rgba(0,150,255,0.1); color: #0096ff; }

/* Live Data Graph */
.av-graph-wrap {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(0,255,0,0.08);
    border-radius: 12px;
    padding: 12px;
    margin: 8px 0;
    height: 80px;
    position: relative;
    overflow: hidden;
}

.av-graph-canvas {
    width: 100%;
    height: 100%;
}

.av-graph-label {
    position: absolute;
    bottom: 4px;
    right: 8px;
    font-size: 9px;
    color: #555;
}

/* Two-col layout */
.av-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 12px 0;
}

.av-col-card {
    background: rgba(0,255,0,0.02);
    border: 1px solid rgba(0,255,0,0.06);
    border-radius: 14px;
    padding: 14px;
}

/* Network Traffic Monitor */
.av-traffic-section { background: rgba(0,150,255,0.03); border: 1px solid rgba(0,150,255,0.08); border-radius: 16px; padding: 16px; margin: 12px 0; }
.av-traffic-section h3 { color: #00ff00; font-size: 14px; margin-bottom: 10px; }
.av-traffic-bars { display: flex; gap: 12px; margin-bottom: 10px; }
.av-traffic-bar { flex: 1; background: rgba(0,0,0,0.15); border-radius: 8px; padding: 10px; text-align: center; }
.av-traffic-bar .bar-label { font-size: 9px; color: #888; text-transform: uppercase; letter-spacing: 1px; }
.av-traffic-bar .bar-value { font-size: 20px; font-weight: 900; margin: 4px 0; }
.av-traffic-bar .bar-unit { font-size: 9px; color: #888; }
.av-traffic-bar.incoming .bar-value { color: #00ff00; }
.av-traffic-bar.outgoing .bar-value { color: #0096ff; }
.av-traffic-bar.blocked .bar-value { color: #ff3232; }
.av-traffic-bar.dns .bar-value { color: #ff9800; }
.av-traffic-conn { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; margin-bottom: 4px; font-size: 11px; }
.av-traffic-conn.safe { background: rgba(0,255,0,0.04); }
.av-traffic-conn.warn { background: rgba(255,152,0,0.06); }
.av-traffic-conn.danger { background: rgba(255,50,50,0.06); }
.av-traffic-conn .conn-icon { font-size: 16px; }
.av-traffic-conn .conn-info { flex: 1; }
.av-traffic-conn .conn-name { font-weight: 700; font-size: 11px; }
.av-traffic-conn .conn-ip { font-size: 8px; color: #888; }
.av-traffic-conn .conn-status { font-size: 8px; font-weight: 800; padding: 2px 6px; border-radius: 4px; }
.av-traffic-conn.safe .conn-status { color: #00ff00; background: rgba(0,255,0,0.1); }
.av-traffic-conn.warn .conn-status { color: #ff9800; background: rgba(255,152,0,0.1); }
.av-traffic-conn.danger .conn-status { color: #ff3232; background: rgba(255,50,50,0.1); }

/* Privacy Dashboard */
.av-privacy-section { background: rgba(156,39,176,0.03); border: 1px solid rgba(156,39,176,0.08); border-radius: 16px; padding: 16px; margin: 12px 0; }
.av-privacy-section h3 { color: #00ff00; font-size: 14px; margin-bottom: 10px; }
.av-privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.av-privacy-card { background: rgba(0,0,0,0.1); border-radius: 10px; padding: 10px; text-align: center; }
.av-privacy-card .priv-icon { font-size: 22px; margin-bottom: 4px; }
.av-privacy-card .priv-label { font-size: 9px; color: #888; text-transform: uppercase; }
.av-privacy-card .priv-value { font-size: 13px; font-weight: 800; }
.av-privacy-card.safe .priv-value { color: #00ff00; }
.av-privacy-card.warn .priv-value { color: #ff9800; }
.av-privacy-card.danger .priv-value { color: #ff3232; }
.av-privacy-log { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; margin-bottom: 3px; font-size: 11px; background: rgba(156,39,176,0.04); }
.av-privacy-log .plog-icon { font-size: 14px; }
.av-privacy-log .plog-info { flex: 1; }
.av-privacy-log .plog-app { font-weight: 700; font-size: 10px; }
.av-privacy-log .plog-detail { font-size: 8px; color: #888; }
.av-privacy-log .plog-time { font-size: 8px; color: #666; }

/* Auto-Update Center */
.av-update-section { background: rgba(0,255,0,0.03); border: 1px solid rgba(0,255,0,0.08); border-radius: 16px; padding: 16px; margin: 12px 0; }
.av-update-section h3 { color: #00ff00; font-size: 14px; margin-bottom: 10px; }
.av-update-row { display: flex; align-items: center; gap: 10px; padding: 10px; background: rgba(0,0,0,0.1); border-radius: 10px; margin-bottom: 6px; }
.av-update-row .upd-icon { font-size: 22px; }
.av-update-row .upd-info { flex: 1; }
.av-update-row .upd-title { font-size: 12px; font-weight: 700; }
.av-update-row .upd-meta { font-size: 9px; color: #888; }
.av-update-row .upd-badge { font-size: 9px; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
.av-update-row .upd-badge.current { color: #00ff00; background: rgba(0,255,0,0.1); }
.av-update-row .upd-badge.updating { color: #0096ff; background: rgba(0,150,255,0.1); }
.av-update-row .upd-badge.outdated { color: #ff3232; background: rgba(255,50,50,0.1); }
.av-update-btn { width: 100%; padding: 10px; border: none; border-radius: 10px; background: rgba(0,255,0,0.1); color: #00ff00; font-weight: 800; font-size: 12px; cursor: pointer; transition: all 0.2s; margin-top: 6px; }
.av-update-btn:hover { background: #00ff00; color: #000; }

/* Battery & Performance */
.av-perf-section { background: rgba(255,152,0,0.03); border: 1px solid rgba(255,152,0,0.08); border-radius: 16px; padding: 16px; margin: 12px 0; }
.av-perf-section h3 { color: #00ff00; font-size: 14px; margin-bottom: 10px; }
.av-perf-meters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.av-perf-meter { text-align: center; padding: 10px 6px; background: rgba(0,0,0,0.1); border-radius: 10px; }
.av-perf-meter .meter-icon { font-size: 18px; margin-bottom: 4px; }
.av-perf-meter .meter-bar { width: 100%; height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; margin: 6px 0; overflow: hidden; }
.av-perf-meter .meter-fill { height: 100%; border-radius: 3px; transition: width 1s ease; }
.av-perf-meter .meter-fill.low { background: #00ff00; }
.av-perf-meter .meter-fill.mid { background: #ff9800; }
.av-perf-meter .meter-fill.high { background: #ff3232; }
.av-perf-meter .meter-label { font-size: 8px; color: #888; text-transform: uppercase; }
.av-perf-meter .meter-value { font-size: 14px; font-weight: 900; }

/* Family Protection */
.av-family-section { background: rgba(0,200,83,0.03); border: 1px solid rgba(0,200,83,0.08); border-radius: 16px; padding: 16px; margin: 12px 0; }
.av-family-section h3 { color: #00ff00; font-size: 14px; margin-bottom: 10px; }
.av-family-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.av-family-card { display: flex; align-items: center; gap: 10px; padding: 10px; background: rgba(0,0,0,0.1); border-radius: 12px; }
.av-family-card .fam-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.av-family-card .fam-info { flex: 1; }
.av-family-card .fam-name { font-size: 12px; font-weight: 700; }
.av-family-card .fam-device { font-size: 9px; color: #888; }
.av-family-card .fam-status { font-size: 8px; font-weight: 800; padding: 2px 6px; border-radius: 4px; }
.av-family-card .fam-status.protected { color: #00ff00; background: rgba(0,255,0,0.1); }
.av-family-card .fam-status.alert { color: #ff3232; background: rgba(255,50,50,0.1); }
.av-family-card .fam-status.offline { color: #888; background: rgba(128,128,128,0.1); }

/* Security Score Breakdown */
.av-breakdown-section { background: rgba(0,255,0,0.03); border: 1px solid rgba(0,255,0,0.08); border-radius: 16px; padding: 16px; margin: 12px 0; }
.av-breakdown-section h3 { color: #00ff00; font-size: 14px; margin-bottom: 10px; }
.av-breakdown-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.av-breakdown-row:last-child { border-bottom: none; }
.av-breakdown-row .brk-icon { font-size: 18px; width: 28px; text-align: center; }
.av-breakdown-row .brk-info { flex: 1; }
.av-breakdown-row .brk-label { font-size: 11px; font-weight: 700; }
.av-breakdown-row .brk-bar { width: 100%; height: 5px; background: rgba(255,255,255,0.06); border-radius: 3px; margin-top: 4px; overflow: hidden; }
.av-breakdown-row .brk-fill { height: 100%; border-radius: 3px; transition: width 1s ease; }
.av-breakdown-row .brk-score { font-size: 13px; font-weight: 900; min-width: 36px; text-align: right; }
.av-breakdown-tips { margin-top: 10px; }
.av-breakdown-tip { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; background: rgba(255,152,0,0.06); border-radius: 8px; margin-bottom: 4px; font-size: 10px; }
.av-breakdown-tip .tip-icon { font-size: 14px; }
.av-breakdown-tip .tip-text { flex: 1; line-height: 1.4; }

/* VPN Shield */
.av-vpn-section { background: rgba(0,200,150,0.03); border: 1px solid rgba(0,200,150,0.08); border-radius: 16px; padding: 16px; margin: 12px 0; }
.av-vpn-section h3 { color: #00ff00; font-size: 14px; margin-bottom: 10px; }
.av-vpn-status { display: flex; align-items: center; gap: 14px; padding: 14px; background: rgba(0,255,0,0.03); border-radius: 12px; margin-bottom: 10px; }
.av-vpn-shield-icon { font-size: 42px; }
.av-vpn-info { flex: 1; }
.av-vpn-state { font-size: 16px; font-weight: 900; }
.av-vpn-state.connected { color: #00ff00; }
.av-vpn-state.disconnected { color: #ff5050; }
.av-vpn-meta { font-size: 9px; color: #888; margin-top: 2px; }
.av-vpn-toggle { padding: 10px 20px; border: none; border-radius: 8px; font-weight: 800; font-size: 11px; cursor: pointer; }
.av-vpn-toggle.on { background: #ff5050; color: #fff; }
.av-vpn-toggle.off { background: #00ff00; color: #000; }
.av-vpn-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.av-vpn-stat { text-align: center; padding: 8px 4px; background: rgba(0,0,0,0.04); border-radius: 8px; }
.av-vpn-stat .vstat-label { font-size: 7px; font-weight: 700; text-transform: uppercase; color: #888; }
.av-vpn-stat .vstat-val { font-size: 16px; font-weight: 900; color: #00c896; margin: 2px 0; }
.av-vpn-stat .vstat-unit { font-size: 7px; color: #888; }

/* App Risk Scanner */
.av-apprisk-section { background: rgba(255,100,0,0.03); border: 1px solid rgba(255,100,0,0.08); border-radius: 16px; padding: 16px; margin: 12px 0; }
.av-apprisk-section h3 { color: #00ff00; font-size: 14px; margin-bottom: 10px; }
.av-apprisk-row { display: flex; align-items: center; gap: 10px; padding: 10px; background: rgba(0,0,0,0.02); border-radius: 10px; margin-bottom: 4px; }
.av-apprisk-icon { font-size: 22px; }
.av-apprisk-info { flex: 1; }
.av-apprisk-name { font-size: 11px; font-weight: 700; }
.av-apprisk-detail { font-size: 8px; color: #888; }
.av-apprisk-badge { font-size: 8px; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
.av-apprisk-badge.safe { background: rgba(0,255,0,0.1); color: #00ff00; }
.av-apprisk-badge.medium { background: rgba(255,152,0,0.1); color: #ff9800; }
.av-apprisk-badge.high { background: rgba(255,50,50,0.1); color: #ff3232; }
.av-apprisk-score { font-size: 13px; font-weight: 900; min-width: 30px; text-align: right; }

/* Dark Web Monitor */
.av-darkweb-section { background: rgba(100,0,200,0.03); border: 1px solid rgba(100,0,200,0.08); border-radius: 16px; padding: 16px; margin: 12px 0; }
.av-darkweb-section h3 { color: #00ff00; font-size: 14px; margin-bottom: 10px; }
.av-darkweb-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.av-darkweb-card { text-align: center; padding: 10px; background: rgba(0,0,0,0.04); border-radius: 10px; }
.av-darkweb-card .dw-icon { font-size: 22px; }
.av-darkweb-card .dw-val { font-size: 18px; font-weight: 900; margin: 3px 0; }
.av-darkweb-card .dw-label { font-size: 8px; color: #888; }
.av-darkweb-alert { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; margin-bottom: 4px; }
.av-darkweb-alert.critical { background: rgba(255,50,50,0.05); }
.av-darkweb-alert.warn { background: rgba(255,152,0,0.05); }
.av-darkweb-alert.safe { background: rgba(0,255,0,0.03); }
.av-darkweb-alert .dwa-icon { font-size: 16px; }
.av-darkweb-alert .dwa-info { flex: 1; }
.av-darkweb-alert .dwa-title { font-size: 10px; font-weight: 700; }
.av-darkweb-alert .dwa-detail { font-size: 8px; color: #888; }
.av-darkweb-alert .dwa-time { font-size: 7px; color: #888; }

/* Threat Map */
.av-threatmap-section { background: rgba(0,100,255,0.03); border: 1px solid rgba(0,100,255,0.08); border-radius: 16px; padding: 16px; margin: 12px 0; }
.av-threatmap-section h3 { color: #00ff00; font-size: 14px; margin-bottom: 10px; }
.av-threatmap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.av-threatmap-region { padding: 10px; border-radius: 10px; background: rgba(0,0,0,0.03); }
.av-threatmap-region .tmr-name { font-size: 9px; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.av-threatmap-region .tmr-count { font-size: 16px; font-weight: 900; margin: 3px 0; }
.av-threatmap-region .tmr-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.05); overflow: hidden; }
.av-threatmap-region .tmr-bar-fill { height: 100%; border-radius: 2px; }
.av-threatmap-live { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: rgba(255,50,50,0.04); border-radius: 8px; margin-bottom: 4px; font-size: 10px; }
.av-threatmap-live .tml-dot { width: 6px; height: 6px; border-radius: 50%; background: #ff3232; animation: avPulse 1.5s infinite; }

/* Smart Alerts */
.av-alerts-section { background: rgba(255,200,0,0.03); border: 1px solid rgba(255,200,0,0.08); border-radius: 16px; padding: 16px; margin: 12px 0; }
.av-alerts-section h3 { color: #00ff00; font-size: 14px; margin-bottom: 10px; }
.av-alerts-rules { margin-bottom: 10px; }
.av-alert-rule { display: flex; align-items: center; gap: 10px; padding: 10px; background: rgba(0,0,0,0.02); border-radius: 10px; margin-bottom: 4px; }
.av-alert-rule .alr-icon { font-size: 18px; }
.av-alert-rule .alr-info { flex: 1; }
.av-alert-rule .alr-title { font-size: 10px; font-weight: 700; }
.av-alert-rule .alr-desc { font-size: 8px; color: #888; }
.av-alert-rule .alr-toggle { width: 36px; height: 20px; border-radius: 10px; position: relative; cursor: pointer; border: none; }
.av-alert-rule .alr-toggle.on { background: #00ff00; }
.av-alert-rule .alr-toggle.off { background: #555; }
.av-alert-rule .alr-toggle::after { content: ''; position: absolute; width: 16px; height: 16px; background: #fff; border-radius: 50%; top: 2px; transition: left 0.2s; }
.av-alert-rule .alr-toggle.on::after { left: 18px; }
.av-alert-rule .alr-toggle.off::after { left: 2px; }
.av-alert-history { font-size: 10px; }
.av-alert-history-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: rgba(0,0,0,0.02); border-radius: 8px; margin-bottom: 3px; }
.av-alert-history-item .alh-icon { font-size: 14px; }
.av-alert-history-item .alh-text { flex: 1; font-size: 9px; }
.av-alert-history-item .alh-time { font-size: 7px; color: #888; }

/* Financial Protection */
.av-finance-section { background: rgba(0,200,100,0.03); border: 1px solid rgba(0,200,100,0.08); border-radius: 16px; padding: 16px; margin: 12px 0; }
.av-finance-section h3 { color: #00ff00; font-size: 14px; margin-bottom: 10px; }
.av-finance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.av-finance-card { text-align: center; padding: 10px; background: rgba(0,0,0,0.04); border-radius: 10px; }
.av-finance-card .fin-icon { font-size: 22px; }
.av-finance-card .fin-val { font-size: 11px; font-weight: 800; margin: 3px 0; }
.av-finance-card .fin-label { font-size: 7px; text-transform: uppercase; font-weight: 700; color: #888; }
.av-finance-row { display: flex; align-items: center; gap: 10px; padding: 10px; background: rgba(0,0,0,0.02); border-radius: 10px; margin-bottom: 4px; }
.av-finance-row .finr-icon { font-size: 20px; }
.av-finance-row .finr-info { flex: 1; }
.av-finance-row .finr-name { font-size: 10px; font-weight: 700; }
.av-finance-row .finr-detail { font-size: 8px; color: #888; }
.av-finance-row .finr-badge { font-size: 8px; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
.av-finance-row .finr-badge.secured { background: rgba(0,255,0,0.1); color: #00ff00; }
.av-finance-row .finr-badge.warning { background: rgba(255,152,0,0.1); color: #ff9800; }

/* Responsive */
@media (max-width: 600px) {
    .av-modules { grid-template-columns: repeat(2, 1fr); }
    .av-stats { grid-template-columns: repeat(2, 1fr); }
    .av-two-col { grid-template-columns: 1fr; }
    .av-health-wrap { flex-direction: column; text-align: center; }
    .av-traffic-bars { flex-wrap: wrap; }
    .av-traffic-bar { min-width: calc(50% - 6px); }
    .av-privacy-grid { grid-template-columns: repeat(2, 1fr); }
    .av-perf-meters { grid-template-columns: repeat(2, 1fr); }
    .av-family-grid { grid-template-columns: 1fr; }
    .av-vpn-stats { grid-template-columns: repeat(2, 1fr); }
    .av-darkweb-summary { grid-template-columns: 1fr 1fr 1fr; }
    .av-threatmap-grid { grid-template-columns: repeat(2, 1fr); }
    .av-finance-grid { grid-template-columns: repeat(2, 1fr); }
}
